summaryrefslogtreecommitdiff
path: root/Lib/tkinter/scrolledtext.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/scrolledtext.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/scrolledtext.py')
-rw-r--r--Lib/tkinter/scrolledtext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tkinter/scrolledtext.py b/Lib/tkinter/scrolledtext.py
index 9aa936ae94..749a06a6f0 100644
--- a/Lib/tkinter/scrolledtext.py
+++ b/Lib/tkinter/scrolledtext.py
@@ -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()