File tree Expand file tree Collapse file tree 4 files changed +1
-16
lines changed
Expand file tree Collapse file tree 4 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -1887,9 +1887,6 @@ def _loadtk(self):
18871887 if tcl_version != _tkinter .TCL_VERSION :
18881888 raise RuntimeError ("tcl.h version (%s) doesn't match libtcl.a version (%s)" \
18891889 % (_tkinter .TCL_VERSION , tcl_version ))
1890- if TkVersion < 4.0 :
1891- raise RuntimeError ("Tk 4.0 or higher is required; found Tk %s"
1892- % str (TkVersion ))
18931890 # Create and register the tkerror and exit commands
18941891 # We need to inline parts of _register here, _ register
18951892 # would register differently-named commands.
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ class Dialog:
1515 command = None
1616
1717 def __init__ (self , master = None , ** options ):
18-
19- # FIXME: should this be placed on the module level instead?
20- if TkVersion < 4.2 :
21- raise TclError ("this module requires Tk 4.2 or newer" )
22-
2318 self .master = master
2419 self .options = options
2520 if not master and options .get ('parent' ):
Original file line number Diff line number Diff line change 33from tkinter import *
44from tkinter import _cnfmerge
55
6- if TkVersion <= 3.6 :
7- DIALOG_ICON = 'warning'
8- else :
9- DIALOG_ICON = 'questhead'
6+ DIALOG_ICON = 'questhead'
107
118
129class Dialog (Widget ):
Original file line number Diff line number Diff line change 2929from tkinter import *
3030from tkinter import _cnfmerge , _default_root
3131
32- # WARNING - TkVersion is a limited precision floating point number
33- if TkVersion < 3.999 :
34- raise ImportError ("This version of Tix.py requires Tk 4.0 or higher" )
35-
3632import _tkinter # If this fails your Python may not be configured for Tk
3733
3834# Some more constants (for consistency with Tkinter)
You can’t perform that action at this time.
0 commit comments