From a46d3f05a9bc95932414ee8bc200e9d414d81487 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 28 Jun 2019 01:33:24 +0200 Subject: Remenbering last RefreshableOptionMenu value in a "sane" way --- jfr_playoff/gui/frames/visual.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'jfr_playoff/gui/frames/visual.py') diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py index 37cb90c..28d1827 100644 --- a/jfr_playoff/gui/frames/visual.py +++ b/jfr_playoff/gui/frames/visual.py @@ -178,7 +178,6 @@ class VisualSettingsFrame(GuiFrame): self.teamNamePrefix.set(values['team_boxes']['name_prefix']) - class MatchList(RefreshableOptionMenu): def __init__(self, *args, **kwargs): RefreshableOptionMenu.__init__(self, *args, **kwargs) @@ -192,9 +191,6 @@ class MatchList(RefreshableOptionMenu): def getValues(self): return self.winfo_toplevel().getMatches() - def cmpValue(self, match): - return match.id == getIntVal(self._variable, 0) - class BoxPositionFrame(RepeatableFrame): def renderContent(self): @@ -214,7 +210,6 @@ class BoxPositionFrame(RepeatableFrame): self, textvariable=self.horizontal, from_=-1, to=9999, width=5, justify=tk.RIGHT)).grid( row=0, column=4) - self.setValue([]) def setValue(self, value): -- cgit v1.2.3