Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
47774413
Commit
47774413
authored
Dec 03, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation on the ScrolledText module.
parent
68e75e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
Doc/lib/tkinter.tex
Doc/lib/tkinter.tex
+37
-0
No files found.
Doc/lib/tkinter.tex
View file @
47774413
...
...
@@ -107,6 +107,9 @@ Other modules that provide Tk support include:
% \modulesynopsis{Constants used by Tkinter}
% FIXME
\item
[\refmodule{ScrolledText}]
Text widget with a vertical scroll bar built in.
\item
[\module{tkColorChooser}]
Dialog to let the user choose a color.
...
...
@@ -1470,6 +1473,40 @@ Instead, the \method{tix_resetoptions()} method must be used.
\end
{
methoddesc
}
\section
{
\module
{
ScrolledText
}
---
Scrolled Text Widget
}
\declaremodule
{
standard
}{
ScrolledText
}
\platform
{
Tk
}
\modulesynopsis
{
Text widget with a vertical scroll bar.
}
\sectionauthor
{
Fred L. Drake, Jr.
}{
fdrake@acm.org
}
The
\module
{
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
\class
{
ScrolledText
}
class is a lot easier than setting up a text widget and scroll bar
directly. The constructor is the same as that of the
\class
{
Tkinter.Text
}
class.
The text widget and scrollbar are packed together in a
\class
{
Frame
}
,
and the methods of the
\class
{
Pack
}
geometry manager are acquired from
the
\class
{
Frame
}
object. This allows the
\class
{
ScrolledText
}
widget
to be used directly to achieve most normal geometry management
behavior.
Should more specific control be necessary, the following attributes
are available:
\begin
{
memberdesc
}
[
ScrolledText
]
{
frame
}
The frame which surrounds the text and scroll bar widgets.
\end
{
memberdesc
}
\begin
{
memberdesc
}
[
ScrolledText
]
{
vbar
}
The scroll bar widget.
\end
{
memberdesc
}
\input
{
libturtle
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment