summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/macosxSupport.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-17 18:39:55 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-17 18:39:55 (GMT)
commit14fc4270da5db43574d46d055a5f794ed33b271f (patch)
tree3d937a96350b067c7dcee6425fe14617dd8b9ef5 /Lib/idlelib/macosxSupport.py
parent330231238327558337b9d8dbabe3a3b02641501d (diff)
downloadcpython-14fc4270da5db43574d46d055a5f794ed33b271f.zip
cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.gz
cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.bz2
Tkinter, step 2: adapt imports.
Diffstat (limited to 'Lib/idlelib/macosxSupport.py')
-rw-r--r--Lib/idlelib/macosxSupport.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py
index 20c8e23..5e249e2 100644
--- a/Lib/idlelib/macosxSupport.py
+++ b/Lib/idlelib/macosxSupport.py
@@ -3,7 +3,7 @@ A number of function that enhance IDLE on MacOSX when it used as a normal
GUI application (as opposed to an X11 application).
"""
import sys
-import Tkinter
+import tkinter
def runningAsOSXApp():
""" Returns True iff running from the IDLE.app bundle on OSX """
@@ -26,7 +26,7 @@ def addOpenEventSupport(root, flist):
def hideTkConsole(root):
try:
root.tk.call('console', 'hide')
- except Tkinter.TclError:
+ except tkinter.TclError:
# Some versions of the Tk framework don't have a console object
pass
@@ -46,7 +46,7 @@ def overrideRootMenu(root, flist):
#
# Due to a (mis-)feature of TkAqua the user will also see an empty Help
# menu.
- from Tkinter import Menu, Text, Text
+ from tkinter import Menu, Text, Text
from idlelib.EditorWindow import prepstr, get_accelerator
from idlelib import Bindings
from idlelib import WindowList