diff --git a/canvas.py b/canvas.py index ab95cfd..1c27ebd 100644 --- a/canvas.py +++ b/canvas.py @@ -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) diff --git a/main.py b/main.py index 8d08f0c..7d073cc 100644 --- a/main.py +++ b/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")