Nicer GUI layout
This commit is contained in:
parent
4b9ff9e035
commit
751e63e4e7
@ -130,5 +130,4 @@ class EditorCanvas(tkinter.Canvas):
|
||||
self.height=self.project.char_res[1]*self.grid_size
|
||||
self.current_char_pixels=[0 for _ in range(self.project.char_res[0]*self.project.char_res[1])]
|
||||
self.load_char()
|
||||
self.config(width=self.width,height=self.height)
|
||||
|
||||
|
4
main.py
4
main.py
@ -94,10 +94,10 @@ menu_file.add_command(label="Save project as",command=menu_file_save_project_as_
|
||||
menubar.add_cascade(label="File",menu=menu_file)
|
||||
|
||||
canvas_editor=EditorCanvas(project,window,bg="black")
|
||||
canvas_editor.pack(side="left")
|
||||
canvas_editor.pack(side="left",fill="both",expand=True)
|
||||
|
||||
frame_controls=tkinter.Frame(window)
|
||||
frame_controls.pack()
|
||||
frame_controls.pack(side="right")
|
||||
|
||||
canvas_preview=tkinter.Canvas(frame_controls,width=100,height=200,bg="black")
|
||||
canvas_preview.pack(side="top")
|
||||
|
Loading…
Reference in New Issue
Block a user