1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
<title>25.4. tkinter.scrolledtext — Scrolled Text Widget — Python 3.5.2 documentation</title>
11
<link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
12
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
<script type="text/javascript">
15
var DOCUMENTATION_OPTIONS = {
18
COLLAPSE_INDEX: false,
23
<script type="text/javascript" src="../_static/jquery.js"></script>
24
<script type="text/javascript" src="../_static/underscore.js"></script>
25
<script type="text/javascript" src="../_static/doctools.js"></script>
26
<script type="text/javascript" src="../_static/sidebar.js"></script>
27
<link rel="search" type="application/opensearchdescription+xml"
28
title="Search within Python 3.5.2 documentation"
29
href="../_static/opensearch.xml"/>
30
<link rel="author" title="About these documents" href="../about.html" />
31
<link rel="copyright" title="Copyright" href="../copyright.html" />
32
<link rel="top" title="Python 3.5.2 documentation" href="../contents.html" />
33
<link rel="up" title="25. Graphical User Interfaces with Tk" href="tk.html" />
34
<link rel="next" title="25.5. IDLE" href="idle.html" />
35
<link rel="prev" title="25.3. tkinter.tix — Extension widgets for Tk" href="tkinter.tix.html" />
36
<link rel="shortcut icon" type="image/png" href="../_static/py.png" />
38
<script type="text/javascript" src="../_static/copybutton.js"></script>
39
<script type="text/javascript" src="../_static/version_switch.js"></script>
45
<body role="document">
46
<div class="related" role="navigation" aria-label="related navigation">
49
<li class="right" style="margin-right: 10px">
50
<a href="../genindex.html" title="General Index"
51
accesskey="I">index</a></li>
53
<a href="../py-modindex.html" title="Python Module Index"
56
<a href="idle.html" title="25.5. IDLE"
57
accesskey="N">next</a> |</li>
59
<a href="tkinter.tix.html" title="25.3. tkinter.tix — Extension widgets for Tk"
60
accesskey="P">previous</a> |</li>
61
<li><img src="../_static/py.png" alt=""
62
style="vertical-align: middle; margin-top: -1px"/></li>
63
<li><a href="https://www.python.org/">Python</a> »</li>
65
<span class="version_switcher_placeholder">3.5.2</span>
66
<a href="../index.html">Documentation </a> »
69
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>
70
<li class="nav-item nav-item-2"><a href="tk.html" accesskey="U">25. Graphical User Interfaces with Tk</a> »</li>
74
<div class="inline-search" style="display: none" role="search">
75
<form class="inline-search" action="../search.html" method="get">
76
<input placeholder="Quick search" type="text" name="q" />
77
<input type="submit" value="Go" />
78
<input type="hidden" name="check_keywords" value="yes" />
79
<input type="hidden" name="area" value="default" />
82
<script type="text/javascript">$('.inline-search').show(0);</script>
89
<div class="document">
90
<div class="documentwrapper">
91
<div class="bodywrapper">
92
<div class="body" role="main">
94
<div class="section" id="module-tkinter.scrolledtext">
95
<span id="tkinter-scrolledtext-scrolled-text-widget"></span><h1>25.4. <a class="reference internal" href="#module-tkinter.scrolledtext" title="tkinter.scrolledtext: Text widget with a vertical scroll bar. (Tk)"><code class="xref py py-mod docutils literal"><span class="pre">tkinter.scrolledtext</span></code></a> — Scrolled Text Widget<a class="headerlink" href="#module-tkinter.scrolledtext" title="Permalink to this headline">¶</a></h1>
96
<p><strong>Source code:</strong> <a class="reference external" href="https://hg.python.org/cpython/file/3.5/Lib/tkinter/scrolledtext.py">Lib/tkinter/scrolledtext.py</a></p>
97
<hr class="docutils" />
98
<p>The <a class="reference internal" href="#module-tkinter.scrolledtext" title="tkinter.scrolledtext: Text widget with a vertical scroll bar. (Tk)"><code class="xref py py-mod docutils literal"><span class="pre">tkinter.scrolledtext</span></code></a> module provides a class of the same name which
99
implements a basic text widget which has a vertical scroll bar configured to do
100
the “right thing.” Using the <code class="xref py py-class docutils literal"><span class="pre">ScrolledText</span></code> class is a lot easier than
101
setting up a text widget and scroll bar directly. The constructor is the same
102
as that of the <code class="xref py py-class docutils literal"><span class="pre">tkinter.Text</span></code> class.</p>
103
<p>The text widget and scrollbar are packed together in a <code class="xref py py-class docutils literal"><span class="pre">Frame</span></code>, and the
104
methods of the <code class="xref py py-class docutils literal"><span class="pre">Grid</span></code> and <code class="xref py py-class docutils literal"><span class="pre">Pack</span></code> geometry managers are acquired
105
from the <code class="xref py py-class docutils literal"><span class="pre">Frame</span></code> object. This allows the <code class="xref py py-class docutils literal"><span class="pre">ScrolledText</span></code> widget to
106
be used directly to achieve most normal geometry management behavior.</p>
107
<p>Should more specific control be necessary, the following attributes are
109
<dl class="attribute">
110
<dt id="tkinter.scrolledtext.ScrolledText.frame">
111
<code class="descclassname">ScrolledText.</code><code class="descname">frame</code><a class="headerlink" href="#tkinter.scrolledtext.ScrolledText.frame" title="Permalink to this definition">¶</a></dt>
112
<dd><p>The frame which surrounds the text and scroll bar widgets.</p>
115
<dl class="attribute">
116
<dt id="tkinter.scrolledtext.ScrolledText.vbar">
117
<code class="descclassname">ScrolledText.</code><code class="descname">vbar</code><a class="headerlink" href="#tkinter.scrolledtext.ScrolledText.vbar" title="Permalink to this definition">¶</a></dt>
118
<dd><p>The scroll bar widget.</p>
127
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
128
<div class="sphinxsidebarwrapper">
129
<h4>Previous topic</h4>
130
<p class="topless"><a href="tkinter.tix.html"
131
title="previous chapter">25.3. <code class="docutils literal"><span class="pre">tkinter.tix</span></code> — Extension widgets for Tk</a></p>
133
<p class="topless"><a href="idle.html"
134
title="next chapter">25.5. IDLE</a></p>
135
<div role="note" aria-label="source link">
137
<ul class="this-page-menu">
138
<li><a href="../bugs.html">Report a Bug</a></li>
139
<li><a href="../_sources/library/tkinter.scrolledtext.txt"
140
rel="nofollow">Show Source</a></li>
145
<div class="clearer"></div>
147
<div class="related" role="navigation" aria-label="related navigation">
150
<li class="right" style="margin-right: 10px">
151
<a href="../genindex.html" title="General Index"
154
<a href="../py-modindex.html" title="Python Module Index"
157
<a href="idle.html" title="25.5. IDLE"
160
<a href="tkinter.tix.html" title="25.3. tkinter.tix — Extension widgets for Tk"
162
<li><img src="../_static/py.png" alt=""
163
style="vertical-align: middle; margin-top: -1px"/></li>
164
<li><a href="https://www.python.org/">Python</a> »</li>
166
<span class="version_switcher_placeholder">3.5.2</span>
167
<a href="../index.html">Documentation </a> »
170
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>
171
<li class="nav-item nav-item-2"><a href="tk.html" >25. Graphical User Interfaces with Tk</a> »</li>
175
<div class="inline-search" style="display: none" role="search">
176
<form class="inline-search" action="../search.html" method="get">
177
<input placeholder="Quick search" type="text" name="q" />
178
<input type="submit" value="Go" />
179
<input type="hidden" name="check_keywords" value="yes" />
180
<input type="hidden" name="area" value="default" />
183
<script type="text/javascript">$('.inline-search').show(0);</script>
190
© <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
192
The Python Software Foundation is a non-profit corporation.
193
<a href="https://www.python.org/psf/donations/">Please donate.</a>
195
Last updated on Sep 23, 2016.
196
<a href="../bugs.html">Found a bug</a>?
198
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
b'\\ No newline at end of file'