Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a76386

Browse files
committed
Added documentation on the ScrolledText module.
1 parent c54fc31 commit 1a76386

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Doc/lib/tkinter.tex

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ \subsection{Tkinter Modules}
107107
% \modulesynopsis{Constants used by Tkinter}
108108
% FIXME
109109

110+
\item[\refmodule{ScrolledText}]
111+
Text widget with a vertical scroll bar built in.
112+
110113
\item[\module{tkColorChooser}]
111114
Dialog to let the user choose a color.
112115

@@ -1470,6 +1473,40 @@ \subsection{Tix Commands}
14701473
\end{methoddesc}
14711474

14721475

1476+
1477+
\section{\module{ScrolledText} ---
1478+
Scrolled Text Widget}
1479+
1480+
\declaremodule{standard}{ScrolledText}
1481+
\platform{Tk}
1482+
\modulesynopsis{Text widget with a vertical scroll bar.}
1483+
\sectionauthor{Fred L. Drake, Jr.}{[email protected]}
1484+
1485+
The \module{ScrolledText} module provides a class of the same name
1486+
which implements a basic text widget which has a vertical scroll bar
1487+
configured to do the ``right thing.'' Using the \class{ScrolledText}
1488+
class is a lot easier than setting up a text widget and scroll bar
1489+
directly. The constructor is the same as that of the
1490+
\class{Tkinter.Text} class.
1491+
1492+
The text widget and scrollbar are packed together in a \class{Frame},
1493+
and the methods of the \class{Pack} geometry manager are acquired from
1494+
the \class{Frame} object. This allows the \class{ScrolledText} widget
1495+
to be used directly to achieve most normal geometry management
1496+
behavior.
1497+
1498+
Should more specific control be necessary, the following attributes
1499+
are available:
1500+
1501+
\begin{memberdesc}[ScrolledText]{frame}
1502+
The frame which surrounds the text and scroll bar widgets.
1503+
\end{memberdesc}
1504+
1505+
\begin{memberdesc}[ScrolledText]{vbar}
1506+
The scroll bar widget.
1507+
\end{memberdesc}
1508+
1509+
14731510
\input{libturtle}
14741511

14751512

0 commit comments

Comments
 (0)