summaryrefslogtreecommitdiff
path: root/Lib/tkinter/dnd.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-12 19:01:00 +0300
committerGitHub <noreply@github.com>2018-10-12 19:01:00 +0300
commitdc0d571b6401527f236b0513f29847e2b9b8a188 (patch)
treef6c9193dc5a7352e511ed1e5ca5e6faab1afc9b8 /Lib/tkinter/dnd.py
parent2d6097d027e0dd3debbabc702aa9c98d94ba32a3 (diff)
downloadcpython-git-dc0d571b6401527f236b0513f29847e2b9b8a188.tar.gz
bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822)
Diffstat (limited to 'Lib/tkinter/dnd.py')
-rw-r--r--Lib/tkinter/dnd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/tkinter/dnd.py b/Lib/tkinter/dnd.py
index e0971a26ad..4de2331c87 100644
--- a/Lib/tkinter/dnd.py
+++ b/Lib/tkinter/dnd.py
@@ -201,7 +201,6 @@ class DndHandler:
source.dnd_end(target, event)
-
# ----------------------------------------------------------------------
# The rest is here for testing and demonstration purposes only!
@@ -265,6 +264,7 @@ class Icon:
def dnd_end(self, target, event):
pass
+
class Tester:
def __init__(self, root):
@@ -299,6 +299,7 @@ class Tester:
x, y = source.where(self.canvas, event)
source.attach(self.canvas, x, y)
+
def test():
root = tkinter.Tk()
root.geometry("+1+1")
@@ -317,5 +318,6 @@ def test():
i3.attach(t3.canvas)
root.mainloop()
+
if __name__ == '__main__':
test()