diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-12 16:01:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 16:01:00 (GMT) |
commit | dc0d571b6401527f236b0513f29847e2b9b8a188 (patch) | |
tree | f6c9193dc5a7352e511ed1e5ca5e6faab1afc9b8 /Lib/tkinter/dnd.py | |
parent | 2d6097d027e0dd3debbabc702aa9c98d94ba32a3 (diff) | |
download | cpython-dc0d571b6401527f236b0513f29847e2b9b8a188.zip cpython-dc0d571b6401527f236b0513f29847e2b9b8a188.tar.gz cpython-dc0d571b6401527f236b0513f29847e2b9b8a188.tar.bz2 |
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.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/tkinter/dnd.py b/Lib/tkinter/dnd.py index e0971a2..4de2331 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() |