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/gui/frames/team.py | |
parent | 85935853728834a3b0602da3b284759b80fcd483 (diff) |
Minor fixes for DB field autocomplete + proper init of autocomplete dictionary for swiss fields
Diffstat (limited to 'jfr_playoff/gui/frames/team.py')
-rw-r--r-- | jfr_playoff/gui/frames/team.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |