From 14660c5f02f09c2f186ef8dd217f5dcde25b3a44 Mon Sep 17 00:00:00 2001 From: LeKeno <33626494+lekeno@users.noreply.github.com> Date: Sat, 31 Oct 2020 13:01:39 +0900 Subject: [PATCH] not quite right See issue #347 --- edr/edrtogglingpanel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edr/edrtogglingpanel.py b/edr/edrtogglingpanel.py index 3e5c5ab1..519d2a60 100644 --- a/edr/edrtogglingpanel.py +++ b/edr/edrtogglingpanel.py @@ -47,7 +47,7 @@ def __init__(self, parent, label, status, show, *args, **options): self.label = tk.Label(self.status_frame, text=label, foreground=conf.rgb("status", "label"), background=bg) self.label.grid(sticky="w", row=1, column=0) self.status_ui = ttkHyperlinkLabel.HyperlinkLabel(self.status_frame, textvariable=status, foreground=fg, background=bg) - self.status_ui.grid(sticky="w", row=1, column=1) + self.status_ui.grid(sticky="ew", row=1, column=1) self.toggle_button = tk.Checkbutton(self.status_frame, width=2, text='+', command=self.toggle, variable=self.show, foreground=conf.rgb("status", "check"), background=bg) @@ -67,6 +67,7 @@ def toggle(self): self.toggle_button.configure(text='+') def refresh_theme(self): + self.status_frame.grid_propagate(False) conf = IGMConfig(config_file='config/igm_alt_config.v3.ini', user_config_file=['config/user_igm_alt_config.v3.ini', 'config/user_igm_alt_config.v2.ini']) theme=EDMCConfig.config.getint('theme') # hat tip to ewanm89@ if (theme):