File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from __future__ import absolute_import
2+
3+ from future .utils import PY3
4+
5+ if PY3 :
6+ from tkinter .ttk import *
7+ else :
8+ try :
9+ from ttk import *
10+ except ImportError :
11+ raise ImportError ('The ttk module is missing. Does your Py2 '
12+ 'installation include tkinter?' )
13+
Original file line number Diff line number Diff line change 5555 import dbm.dumb
5656 import dbm.gnu
5757 import collections.abc # on Py33
58- import tkinter
5958 import pickle # should (optionally) bring in cPickle on Python 2
6059
6160"""
Original file line number Diff line number Diff line change 4040 u"tkinter.colorchooser" : u"tkColorChooser" ,
4141 u"tkinter.commondialog" : u"tkCommonDialog" ,
4242 u"tkinter.font" : u"tkFont" ,
43+ u"tkinter.ttk" : u"ttk" ,
4344 u"tkinter.messagebox" : u"tkMessageBox" ,
4445 u"tkinter.turtle" : u"turtle" ,
4546 u"urllib.robotparser" : u"robotparser" ,
Original file line number Diff line number Diff line change 99 from ttk import *
1010 except ImportError :
1111 raise ImportError ('The ttk module is missing. Does your Py2 '
12- 'installation include Tkinter ?' )
12+ 'installation include tkinter ?' )
1313
You can’t perform that action at this time.
0 commit comments