mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822)
This commit is contained in:
parent
2d6097d027
commit
dc0d571b64
8 changed files with 565 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue