diff options
author | emkael <emkael@tlen.pl> | 2019-06-21 18:36:27 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-21 18:38:17 +0200 |
commit | c4e7936ec4b7f00d8da8021c31c513d6c042a1c8 (patch) | |
tree | c70b788bf01cab4574e80787005370dd240dd50c /jfr_playoff | |
parent | 684284ea122fcfe654121f8432fb152a539618ca (diff) |
SpinBox variables need to be StringVars
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/gui/frames/match.py | 6 | ||||
-rw-r--r-- | jfr_playoff/gui/tabs.py | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py index 14d8ae8..9aa5622 100644 --- a/jfr_playoff/gui/frames/match.py +++ b/jfr_playoff/gui/frames/match.py @@ -68,7 +68,7 @@ class SwissSettingsFrame(RepeatableFrame): (ttk.Label( self, text='Ustaw od miejsca: ')).grid( row=4, column=0, sticky=tk.E) - self.setFrom = tk.IntVar() + self.setFrom = tk.StringVar() (tk.Spinbox( self, textvariable=self.setFrom, from_=1, to=999, width=5)).grid( @@ -78,7 +78,7 @@ class SwissSettingsFrame(RepeatableFrame): self, variable=self.setToEnabled, text='Ustaw do miejsca: ')).grid( row=5, column=0, sticky=tk.E) - self.setTo = tk.IntVar() + self.setTo = tk.StringVar() (tk.Spinbox( self, textvariable=self.setTo, from_=1, to=999, width=5)).grid( @@ -88,7 +88,7 @@ class SwissSettingsFrame(RepeatableFrame): self, variable=self.fetchFromEnabled, text='Pobierz od miejsca: ')).grid( row=6, column=0, sticky=tk.E) - self.fetchFrom = tk.IntVar() + self.fetchFrom = tk.StringVar() (tk.Spinbox( self, textvariable=self.fetchFrom, from_=1, to=999, width=5)).grid( diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py index 2116001..d39b9da 100644 --- a/jfr_playoff/gui/tabs.py +++ b/jfr_playoff/gui/tabs.py @@ -7,7 +7,6 @@ from tkinter import ttk import tkFileDialog as tkfd import tkMessageBox as tkmb -from .frames import getIntVal from .frames.match import * from .frames.network import * from .frames.team import * |