~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-3.5.2-docs-html/library/tkinter.scrolledtext.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
 
 
4
 
 
5
<html xmlns="http://www.w3.org/1999/xhtml">
 
6
  <head>
 
7
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
8
    
 
9
    <title>25.4. tkinter.scrolledtext — Scrolled Text Widget &mdash; Python 3.5.2 documentation</title>
 
10
    
 
11
    <link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
 
12
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
 
13
    
 
14
    <script type="text/javascript">
 
15
      var DOCUMENTATION_OPTIONS = {
 
16
        URL_ROOT:    '../',
 
17
        VERSION:     '3.5.2',
 
18
        COLLAPSE_INDEX: false,
 
19
        FILE_SUFFIX: '.html',
 
20
        HAS_SOURCE:  true
 
21
      };
 
22
    </script>
 
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" />
 
37
    
 
38
    <script type="text/javascript" src="../_static/copybutton.js"></script>
 
39
    <script type="text/javascript" src="../_static/version_switch.js"></script>
 
40
    
 
41
    
 
42
 
 
43
 
 
44
  </head>
 
45
  <body role="document">  
 
46
    <div class="related" role="navigation" aria-label="related navigation">
 
47
      <h3>Navigation</h3>
 
48
      <ul>
 
49
        <li class="right" style="margin-right: 10px">
 
50
          <a href="../genindex.html" title="General Index"
 
51
             accesskey="I">index</a></li>
 
52
        <li class="right" >
 
53
          <a href="../py-modindex.html" title="Python Module Index"
 
54
             >modules</a> |</li>
 
55
        <li class="right" >
 
56
          <a href="idle.html" title="25.5. IDLE"
 
57
             accesskey="N">next</a> |</li>
 
58
        <li class="right" >
 
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> &raquo;</li>
 
64
        <li>
 
65
          <span class="version_switcher_placeholder">3.5.2</span>
 
66
          <a href="../index.html">Documentation </a> &raquo;
 
67
        </li>
 
68
 
 
69
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
 
70
          <li class="nav-item nav-item-2"><a href="tk.html" accesskey="U">25. Graphical User Interfaces with Tk</a> &raquo;</li>
 
71
    <li class="right">
 
72
        
 
73
 
 
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" />
 
80
        </form>
 
81
    </div>
 
82
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
83
         |
 
84
    </li>
 
85
 
 
86
      </ul>
 
87
    </div>    
 
88
 
 
89
    <div class="document">
 
90
      <div class="documentwrapper">
 
91
        <div class="bodywrapper">
 
92
          <div class="body" role="main">
 
93
            
 
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> &#8212; 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 &#8220;right thing.&#8221;  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
 
108
available:</p>
 
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>
 
113
</dd></dl>
 
114
 
 
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>
 
119
</dd></dl>
 
120
 
 
121
</div>
 
122
 
 
123
 
 
124
          </div>
 
125
        </div>
 
126
      </div>
 
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> &#8212; Extension widgets for Tk</a></p>
 
132
  <h4>Next topic</h4>
 
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">
 
136
    <h3>This Page</h3>
 
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>
 
141
    </ul>
 
142
  </div>
 
143
        </div>
 
144
      </div>
 
145
      <div class="clearer"></div>
 
146
    </div>  
 
147
    <div class="related" role="navigation" aria-label="related navigation">
 
148
      <h3>Navigation</h3>
 
149
      <ul>
 
150
        <li class="right" style="margin-right: 10px">
 
151
          <a href="../genindex.html" title="General Index"
 
152
             >index</a></li>
 
153
        <li class="right" >
 
154
          <a href="../py-modindex.html" title="Python Module Index"
 
155
             >modules</a> |</li>
 
156
        <li class="right" >
 
157
          <a href="idle.html" title="25.5. IDLE"
 
158
             >next</a> |</li>
 
159
        <li class="right" >
 
160
          <a href="tkinter.tix.html" title="25.3. tkinter.tix — Extension widgets for Tk"
 
161
             >previous</a> |</li>
 
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> &raquo;</li>
 
165
        <li>
 
166
          <span class="version_switcher_placeholder">3.5.2</span>
 
167
          <a href="../index.html">Documentation </a> &raquo;
 
168
        </li>
 
169
 
 
170
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
 
171
          <li class="nav-item nav-item-2"><a href="tk.html" >25. Graphical User Interfaces with Tk</a> &raquo;</li>
 
172
    <li class="right">
 
173
        
 
174
 
 
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" />
 
181
        </form>
 
182
    </div>
 
183
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
184
         |
 
185
    </li>
 
186
 
 
187
      </ul>
 
188
    </div>  
 
189
    <div class="footer">
 
190
    &copy; <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
 
191
    <br />
 
192
    The Python Software Foundation is a non-profit corporation.
 
193
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
 
194
    <br />
 
195
    Last updated on Sep 23, 2016.
 
196
    <a href="../bugs.html">Found a bug</a>?
 
197
    <br />
 
198
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
 
199
    </div>
 
200
 
 
201
  </body>
 
202
</html>
 
 
b'\\ No newline at end of file'