summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/dnd.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/tkinter/dnd.py
parent330231238327558337b9d8dbabe3a3b02641501d (diff)
downloadcpython-14fc4270da5db43574d46d055a5f794ed33b271f.zip
cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.gz
cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.bz2
Tkinter, step 2: adapt imports.
Diffstat (limited to 'Lib/tkinter/dnd.py')
-rw-r--r--Lib/tkinter/dnd.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/tkinter/dnd.py b/Lib/tkinter/dnd.py
index 2e37d9e..55f0776 100644
--- a/Lib/tkinter/dnd.py
+++ b/Lib/tkinter/dnd.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)