Skip to content

Commit be141c6

Browse files
committed
Merge branch 'ttk' into v0.14.x
2 parents 089fe2a + 313b7e4 commit be141c6

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/future/moves/tkinter/ttk.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

src/future/standard_library/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
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
"""

src/libpasteurize/fixes/fix_imports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
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",

src/tkinter/ttk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
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

0 commit comments

Comments
 (0)