diff --git a/ui.py b/ui.py index 5cd0bc3..4e2a224 100755 --- a/ui.py +++ b/ui.py @@ -102,7 +102,10 @@ class App: notebook.pack(expand=True, fill=BOTH) def handle_canvas_resize(self, event): - print(event) + # I don't know why the Tk system doesn't update these values. + self.canvas['width'] = event.width + self.canvas['height'] = event.height + # print(event) def update_star_system_tab(self, name, x, y): self.star_name_label['text'] = name