Text of docs.python.org › pa › 3 › library › tkinter.scrolledtext.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

tkinter.scrolledtext --- Scrolled text widget — Python 3.15.2 documentation

Navigation index modules | next | previous | Python » 3.15.2 documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.scrolledtext --- Scrolled text widget | Theme | tkinter.scrolledtext --- Scrolled text widget ¶ Source code: Lib/tkinter/scrolledtext.py The tkinter.scrolledtext module provides a class of the same name which implements a basic text widget which has a vertical scroll bar configured to do the "right thing." Using the ScrolledText class is a lot easier than setting up a text widget and scroll bar directly.

The text widget and scrollbar are packed together in a Frame , and the methods of the Pack , Grid and Place geometry managers are acquired from the Frame object. This allows the ScrolledText widget to be used directly to achieve most normal geometry management behavior. Should more specific control be necessary, the following attributes are available: class tkinter.scrolledtext. ScrolledText ( master = None , ** kw ) ¶ frame ¶ The frame which surrounds the text and scroll bar widgets. vbar ¶ The scroll bar widget.

Previous topic tkinter.messagebox --- Tkinter message prompts Next topic tkinter.dnd --- Drag and drop support This page Report a bug Improve this page Show source Show translation source « Navigation index modules | next | previous | Python » 3.15.2 documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.scrolledtext --- Scrolled text widget | Theme | © Copyright 2001 Python Software Foundation.

This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License. See History and License for more information. The Python Software Foundation is a non-profit corporation. Please donate. Last updated on ਨਵੰ 19, 2026 (09:42 UTC). Found a bug ? Created using Sphinx 9.1.1.