summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-07 13:10:18 +0200
committeremkael <emkael@tlen.pl>2019-06-07 13:10:18 +0200
commitd60b7db704e9ae3916afbc75167adbb23678497c (patch)
tree5fad3cbd91e3a11ef88765b94f1fcab4ea69a08e /jfr_playoff/gui/frames/match.py
parentb5ffa3a7e62ce8c3df80144c90c81d272c050c53 (diff)
DBSelectionField fetches DB list by itself
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r--jfr_playoff/gui/frames/match.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index f393585..9c7dfc7 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -12,9 +12,6 @@ class SwissSettingsFrame(RepeatableFrame):
SOURCE_LINK = 0
SOURCE_DB = 1
- def _onDBListChange(self, *args):
- self.fetchDBField.setOptions(self.winfo_toplevel().getDBs())
-
def _setPositionInfo(self, *args):
tournamentFrom = getIntVal(self.setFrom, default=1)
tournamentTo = min(
@@ -55,8 +52,6 @@ class SwissSettingsFrame(RepeatableFrame):
self.fetchDBField = DBSelectionField(
self, self.fetchDB, self.fetchDB.get())
self.fetchDBField.grid(row=1, column=1, sticky=tk.W+tk.E)
- self.winfo_toplevel().bind(
- '<<DBListChanged>>', self._onDBListChange, add='+')
(ttk.Radiobutton(
self, text='Strona turnieju',
variable=self.source, value=self.SOURCE_LINK)).grid(
@@ -123,7 +118,6 @@ class SwissSettingsFrame(RepeatableFrame):
(ttk.Separator(self, orient=tk.HORIZONTAL)).grid(
row=9, column=0, columnspan=6, sticky=tk.E+tk.W)
- self._onDBListChange()
self._setFields()
self._setPositionInfo()