diff options
author | emkael <emkael@tlen.pl> | 2019-06-07 13:03:46 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-07 13:03:46 +0200 |
commit | b5ffa3a7e62ce8c3df80144c90c81d272c050c53 (patch) | |
tree | 54df3ede86353e7c193292e5bdb323615d777af5 /jfr_playoff | |
parent | 85935853728834a3b0602da3b284759b80fcd483 (diff) |
Minor fixes for DB field autocomplete + proper init of autocomplete dictionary for swiss fields
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/gui/frames/match.py | 2 | ||||
-rw-r--r-- | jfr_playoff/gui/frames/team.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py index 6f1ed26..f393585 100644 --- a/jfr_playoff/gui/frames/match.py +++ b/jfr_playoff/gui/frames/match.py @@ -123,7 +123,7 @@ class SwissSettingsFrame(RepeatableFrame): (ttk.Separator(self, orient=tk.HORIZONTAL)).grid( row=9, column=0, columnspan=6, sticky=tk.E+tk.W) - self.fetchDBField.setOptions([]) + self._onDBListChange() self._setFields() self._setPositionInfo() diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py index f1ce7d1..ada8f24 100644 --- a/jfr_playoff/gui/frames/team.py +++ b/jfr_playoff/gui/frames/team.py @@ -163,8 +163,8 @@ class DBSelectionField(ttk.Entry): self.insert(0, new_suggestion) self.selection_range(len(prefix), tk.END) return 'break' - except tk.TclError: - # no text selection + except (tk.TclError, ValueError): + # no text selection or selection was altered, ignore pass def _onChange(self, event): |