From e5620ec415e677603e0144e367dec938504c4c2d Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 25 Jul 2019 17:17:03 +0200 Subject: NumericVar without Notify features --- jfr_playoff/gui/frames/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jfr_playoff/gui/frames') diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py index f996263..3abdff5 100644 --- a/jfr_playoff/gui/frames/__init__.py +++ b/jfr_playoff/gui/frames/__init__.py @@ -7,7 +7,7 @@ import tkinter as tk from tkinter import ttk import tkMessageBox -from ..variables import NotifyStringVar, NotifyIntVar, NotifyNumericVar +from ..variables import NotifyStringVar, NotifyIntVar, NotifyNumericVar, NumericVar def setPanelState(frame, state): for child in frame.winfo_children(): @@ -467,9 +467,9 @@ class NumericSpinbox(tk.Spinbox): self._default = kwargs['from_'] if 'from_' in kwargs else 0 tk.Spinbox.__init__(self, *args, **kwargs) if self._variable is not None: - if not isinstance(self._variable, NotifyNumericVar): + if not isinstance(self._variable, NumericVar): raise AttributeError( - 'NumericSpinbox variable must be NotifyNumericVar') + 'NumericSpinbox variable must be NumericVar') self._variable.trace('w', self._onChange) def _onChange(self, *args): -- cgit v1.2.3