diff options
author | emkael <emkael@tlen.pl> | 2020-01-14 02:13:48 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-01-14 02:13:48 +0100 |
commit | d4e2e89db48980496fb66c46ceacd873a34f8bfc (patch) | |
tree | 5c965192bdd11aa5d2b21e4c8850951902e16396 /jfr_playoff/gui | |
parent | c3b141b01a54b9869f067bff4695d300446f8005 (diff) |
Properly restore last OptionMenu value on value set refresh
Fixes #46
Diffstat (limited to 'jfr_playoff/gui')
-rw-r--r-- | jfr_playoff/gui/frames/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py index 367afc9..983903a 100644 --- a/jfr_playoff/gui/frames/__init__.py +++ b/jfr_playoff/gui/frames/__init__.py @@ -433,7 +433,7 @@ class RefreshableOptionMenu(ttk.OptionMenu): self._valueLock = True self._valueVariable.set( self._lastValue - if self._lastValue in [option[1] for option in options] + if str(self._lastValue) in [str(option[1]) for option in options] else '') self._valueLock = False except tk.TclError: |