mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +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
|
@ -16,6 +16,7 @@ __all__ = ['ScrolledText']
|
|||
from tkinter import Frame, Text, Scrollbar, Pack, Grid, Place
|
||||
from tkinter.constants import RIGHT, LEFT, Y, BOTH
|
||||
|
||||
|
||||
class ScrolledText(Text):
|
||||
def __init__(self, master=None, **kw):
|
||||
self.frame = Frame(master)
|
||||
|
@ -50,5 +51,6 @@ def example():
|
|||
stext.focus_set()
|
||||
stext.mainloop()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
example()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue