From a8ff0c5bc81e6bbd0ad7f7cedd77b0b8955f47ad Mon Sep 17 00:00:00 2001 From: Semjon Date: Mon, 13 Jun 2022 10:11:04 +0200 Subject: [PATCH] fix popup resizing --- fishy/gui/config_top.py | 4 ++++ fishy/helper/popup.py | 1 + 2 files changed, 5 insertions(+) diff --git a/fishy/gui/config_top.py b/fishy/gui/config_top.py index e682231..079f7a1 100644 --- a/fishy/gui/config_top.py +++ b/fishy/gui/config_top.py @@ -90,6 +90,8 @@ def start_fullfisher_config(gui: 'GUI'): ttk.Label(controls_frame, text="Use semi-fisher config for rest").grid(row=row, column=0, columnspan=2, pady=(20, 0)) controls_frame.pack(padx=(5, 5), pady=(5, 10)) + controls_frame.update() + top.start() @@ -149,6 +151,8 @@ def start_semifisher_config(gui: 'GUI'): jitter.grid(row=5, column=1) controls_frame.pack(padx=(5, 5), pady=(5, 5)) + controls_frame.update() + top.start() diff --git a/fishy/helper/popup.py b/fishy/helper/popup.py index bcac143..de0a3a5 100644 --- a/fishy/helper/popup.py +++ b/fishy/helper/popup.py @@ -29,6 +29,7 @@ class PopUp(Toplevel): self.running = False def start(self): + self.minsize(self.winfo_width(), self.winfo_height()) self.grab_set() center(self) while self.running: