summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/MultiCall.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-20 07:13:37 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-20 07:13:37 (GMT)
commit6634bf2919d855ccd821e878b8cc00c7209f1cbe (patch)
tree77ef2dfaaf00ec144e75ac19708e4dd457604ebc /Lib/idlelib/MultiCall.py
parent33cece05b918dff706a4298e33f84d8e8a0391d2 (diff)
downloadcpython-6634bf2919d855ccd821e878b8cc00c7209f1cbe.zip
cpython-6634bf2919d855ccd821e878b8cc00c7209f1cbe.tar.gz
cpython-6634bf2919d855ccd821e878b8cc00c7209f1cbe.tar.bz2
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
Diffstat (limited to 'Lib/idlelib/MultiCall.py')
-rw-r--r--Lib/idlelib/MultiCall.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py
index 269ab3f..51de639 100644
--- a/Lib/idlelib/MultiCall.py
+++ b/Lib/idlelib/MultiCall.py
@@ -32,7 +32,7 @@ Each function will be called at most once for each event.
import sys
import string
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;
@@ -292,7 +292,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):
apply(widget.__init__, (self,)+args, kwargs)
@@ -382,8 +382,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):