Debian Codegraph @

Doc/library/tkinter.scrolledtext.rst

raw
1 :mod:`!tkinter.scrolledtext` --- Scrolled text widget
2 =====================================================
3
4 .. module:: tkinter.scrolledtext
5 :synopsis: Text widget with a vertical scroll bar.
6
7 .. sectionauthor:: Fred L. Drake, Jr. <[email protected]>
8
9 **Source code:** :source:`Lib/tkinter/scrolledtext.py`
10
11 --------------
12
13 The :mod:`tkinter.scrolledtext` module provides a class of the same name which
14 implements a basic text widget which has a vertical scroll bar configured to do
15 the "right thing." Using the :class:`ScrolledText` class is a lot easier than
16 setting up a text widget and scroll bar directly.
17
18 The text widget and scrollbar are packed together in a :class:`~tkinter.Frame`,
19 and the methods of the :class:`~tkinter.Pack`, :class:`~tkinter.Grid` and
20 :class:`~tkinter.Place` geometry managers are acquired from the
21 :class:`~tkinter.Frame` object.
22 This allows the :class:`ScrolledText` widget to be used directly to achieve
23 most normal geometry management behavior.
24
25 Should more specific control be necessary, the following attributes are
26 available:
27
28 .. class:: ScrolledText(master=None, **kw)
29
30
31 .. attribute:: frame
32
33 The frame which surrounds the text and scroll bar widgets.
34
35
36 .. attribute:: vbar
37
38 The scroll bar widget.