From 703142a01c9bd481593f2e1e6feaa9391b4ab3fd Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 12 Nov 2019 01:07:58 +0100 Subject: Panels are enabled/disabled on init in phase match frames to disable sub-options when no default is selected --- jfr_playoff/gui/frames/match.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py index 12d02a5..c91119d 100644 --- a/jfr_playoff/gui/frames/match.py +++ b/jfr_playoff/gui/frames/match.py @@ -357,6 +357,8 @@ class BracketMatchSettingsFrame(GuiFrame): for idx, widget in enumerate(self.bracketWidgets): widget.grid(row=1+idx/2, column=1+idx%2, sticky=tk.W) + self._enablePanels() + self._lockTeams = False def _onTeamListChange(self, *args): @@ -614,6 +616,8 @@ class MatchSettingsFrame(RepeatableFrame): callback=self._setLoserPositions) self.loserPositionsBtn.grid(row=2, column=1, sticky=tk.W) + self._enablePanels() + self.winfo_toplevel().event_generate( '<>', when='tail') -- cgit v1.2.3