summaryrefslogtreecommitdiff
path: root/Lib/lib-tk/Tkdnd.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-20 07:13:37 +0000
committerGeorg Brandl <georg@python.org>2008-05-20 07:13:37 +0000
commit6634bf2919d855ccd821e878b8cc00c7209f1cbe (patch)
tree77ef2dfaaf00ec144e75ac19708e4dd457604ebc /Lib/lib-tk/Tkdnd.py
parent33cece05b918dff706a4298e33f84d8e8a0391d2 (diff)
downloadcpython-git-6634bf2919d855ccd821e878b8cc00c7209f1cbe.tar.gz
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
Diffstat (limited to 'Lib/lib-tk/Tkdnd.py')
-rw-r--r--Lib/lib-tk/Tkdnd.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/lib-tk/Tkdnd.py b/Lib/lib-tk/Tkdnd.py
index 55f0776ce9..2e37d9ec39 100644
--- a/Lib/lib-tk/Tkdnd.py
+++ b/Lib/lib-tk/Tkdnd.py
@@ -100,7 +100,7 @@ active; it will never call dnd_commit().
"""
-import tkinter
+import Tkinter
# The factory function
@@ -219,7 +219,7 @@ class Icon:
self.detach()
if not canvas:
return
- label = tkinter.Label(canvas, text=self.name,
+ label = Tkinter.Label(canvas, text=self.name,
borderwidth=2, relief="raised")
id = canvas.create_window(x, y, window=label, anchor="nw")
self.canvas = canvas
@@ -268,8 +268,8 @@ class Icon:
class Tester:
def __init__(self, root):
- self.top = tkinter.Toplevel(root)
- self.canvas = tkinter.Canvas(self.top, width=100, height=100)
+ self.top = Tkinter.Toplevel(root)
+ self.canvas = Tkinter.Canvas(self.top, width=100, height=100)
self.canvas.pack(fill="both", expand=1)
self.canvas.dnd_accept = self.dnd_accept
@@ -300,9 +300,9 @@ class Tester:
source.attach(self.canvas, x, y)
def test():
- root = tkinter.Tk()
+ root = Tkinter.Tk()
root.geometry("+1+1")
- tkinter.Button(command=root.quit, text="Quit").pack()
+ Tkinter.Button(command=root.quit, text="Quit").pack()
t1 = Tester(root)
t1.top.geometry("+1+60")
t2 = Tester(root)