Nicer GUI layout

This commit is contained in:
mrkubax10 2024-03-03 17:12:32 +01:00
parent 4b9ff9e035
commit 751e63e4e7
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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")