diff options
Diffstat (limited to 'devdocs/python~3.12/library%2Ftkinter.scrolledtext.html')
| -rw-r--r-- | devdocs/python~3.12/library%2Ftkinter.scrolledtext.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devdocs/python~3.12/library%2Ftkinter.scrolledtext.html b/devdocs/python~3.12/library%2Ftkinter.scrolledtext.html new file mode 100644 index 00000000..365d22b7 --- /dev/null +++ b/devdocs/python~3.12/library%2Ftkinter.scrolledtext.html @@ -0,0 +1,15 @@ + <span id="tkinter-scrolledtext-scrolled-text-widget"></span><h1>tkinter.scrolledtext — Scrolled Text Widget</h1> <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/tkinter/scrolledtext.py">Lib/tkinter/scrolledtext.py</a></p> <p>The <a class="reference internal" href="#module-tkinter.scrolledtext" title="tkinter.scrolledtext: Text widget with a vertical scroll bar. (Tk)"><code>tkinter.scrolledtext</code></a> 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 <a class="reference internal" href="#tkinter.scrolledtext.ScrolledText" title="tkinter.scrolledtext.ScrolledText"><code>ScrolledText</code></a> class is a lot easier than setting up a text widget and scroll bar directly.</p> <p>The text widget and scrollbar are packed together in a <code>Frame</code>, and the methods of the <code>Grid</code> and <code>Pack</code> geometry managers are acquired from the <code>Frame</code> object. This allows the <a class="reference internal" href="#tkinter.scrolledtext.ScrolledText" title="tkinter.scrolledtext.ScrolledText"><code>ScrolledText</code></a> widget to be used directly to achieve most normal geometry management behavior.</p> <p>Should more specific control be necessary, the following attributes are available:</p> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.scrolledtext.ScrolledText"> +<code>class tkinter.scrolledtext.ScrolledText(master=None, **kw)</code> </dt> <dd> +<dl class="py attribute"> <dt class="sig sig-object py" id="tkinter.scrolledtext.ScrolledText.frame"> +<code>frame</code> </dt> <dd> +<p>The frame which surrounds the text and scroll bar widgets.</p> </dd> +</dl> <dl class="py attribute"> <dt class="sig sig-object py" id="tkinter.scrolledtext.ScrolledText.vbar"> +<code>vbar</code> </dt> <dd> +<p>The scroll bar widget.</p> </dd> +</dl> </dd> +</dl> <div class="_attribution"> + <p class="_attribution-p"> + © 2001–2023 Python Software Foundation<br>Licensed under the PSF License.<br> + <a href="https://docs.python.org/3.12/library/tkinter.scrolledtext.html" class="_attribution-link">https://docs.python.org/3.12/library/tkinter.scrolledtext.html</a> + </p> +</div> |
