diff options
| author | Georg Brandl <georg@python.org> | 2008-05-16 15:48:15 (GMT) | 
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-05-16 15:48:15 (GMT) | 
| commit | ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32 (patch) | |
| tree | 40cd28e4b9d339d38ac00792f37948fdef291cbf /Lib/idlelib/CodeContext.py | |
| parent | bbc57d73a0f0d1476d9c23b920ecc1ef8212a554 (diff) | |
| download | cpython-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.zip cpython-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.tar.gz cpython-ad9afeb8f02db9a13d2ed8e45361ecbc0d19bd32.tar.bz2  | |
Tkinter rename, step 2: fix imports and add stub modules.
Diffstat (limited to 'Lib/idlelib/CodeContext.py')
| -rw-r--r-- | Lib/idlelib/CodeContext.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py index 420ec33..941bb26 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  from configHandler import idleConf  import re  from sys import maxint as INFINITY @@ -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,  | 
