summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CodeContext.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/CodeContext.py
parent330231238327558337b9d8dbabe3a3b02641501d (diff)
downloadcpython-14fc4270da5db43574d46d055a5f794ed33b271f.zip
cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.gz
cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.bz2
Tkinter, step 2: adapt imports.
Diffstat (limited to 'Lib/idlelib/CodeContext.py')
-rw-r--r--Lib/idlelib/CodeContext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py
index 3ab6e47..84491d5 100644
--- a/Lib/idlelib/CodeContext.py
+++ b/Lib/idlelib/CodeContext.py
@@ -9,8 +9,8 @@ variable in the CodeContext section of config-extensions.def. Lines which do
not open blocks are not shown in the context hints pane.
"""
-import Tkinter
-from Tkconstants import TOP, LEFT, X, W, SUNKEN
+import tkinter
+from tkinter.constants import TOP, LEFT, X, W, SUNKEN
import re
from sys import maxsize as INFINITY
from idlelib.configHandler import idleConf
@@ -69,7 +69,7 @@ class CodeContext:
border = 0
for widget in widgets:
border += int(str( widget.cget('border') ))
- self.label = Tkinter.Label(self.editwin.top,
+ self.label = tkinter.Label(self.editwin.top,
text="\n" * (self.context_depth - 1),
anchor=W, justify=LEFT,
font=self.textfont,