diff options
author | Georg Brandl <georg@python.org> | 2008-05-17 18:39:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-17 18:39:55 (GMT) |
commit | 14fc4270da5db43574d46d055a5f794ed33b271f (patch) | |
tree | 3d937a96350b067c7dcee6425fe14617dd8b9ef5 /Lib/idlelib/MultiCall.py | |
parent | 330231238327558337b9d8dbabe3a3b02641501d (diff) | |
download | cpython-14fc4270da5db43574d46d055a5f794ed33b271f.zip cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.gz cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.bz2 |
Tkinter, step 2: adapt imports.
Diffstat (limited to 'Lib/idlelib/MultiCall.py')
-rw-r--r-- | Lib/idlelib/MultiCall.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index f2e3887..1c40638 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -31,7 +31,7 @@ Each function will be called at most once for each event. import sys import re -import Tkinter +import tkinter # the event type constants, which define the meaning of mc_type MC_KEYPRESS=0; MC_KEYRELEASE=1; MC_BUTTONPRESS=2; MC_BUTTONRELEASE=3; @@ -304,7 +304,7 @@ def MultiCallCreator(widget): return _multicall_dict[widget] class MultiCall (widget): - assert issubclass(widget, Tkinter.Misc) + assert issubclass(widget, tkinter.Misc) def __init__(self, *args, **kwargs): widget.__init__(self, *args, **kwargs) @@ -396,8 +396,8 @@ def MultiCallCreator(widget): if __name__ == "__main__": # Test - root = Tkinter.Tk() - text = MultiCallCreator(Tkinter.Text)(root) + root = tkinter.Tk() + text = MultiCallCreator(tkinter.Text)(root) text.pack() def bindseq(seq, n=[0]): def handler(event): |