summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-11-12 01:07:58 +0100
committeremkael <emkael@tlen.pl>2019-11-12 01:07:58 +0100
commit703142a01c9bd481593f2e1e6feaa9391b4ab3fd (patch)
tree5369de42db4727c129cd50867e0428622ffce31a /jfr_playoff/gui/frames/match.py
parent1acda4a2b61c163e4a0795365751306e9c51044d (diff)
Panels are enabled/disabled on init in phase match frames to disable sub-options when no default is selected
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r--jfr_playoff/gui/frames/match.py4
1 files changed, 4 insertions, 0 deletions
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(
'<<MatchListChanged>>', when='tail')