summaryrefslogtreecommitdiff
path: root/devdocs/python~3.12/library%2Ftkinter.tix.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/python~3.12/library%2Ftkinter.tix.html
new repository
Diffstat (limited to 'devdocs/python~3.12/library%2Ftkinter.tix.html')
-rw-r--r--devdocs/python~3.12/library%2Ftkinter.tix.html136
1 files changed, 136 insertions, 0 deletions
diff --git a/devdocs/python~3.12/library%2Ftkinter.tix.html b/devdocs/python~3.12/library%2Ftkinter.tix.html
new file mode 100644
index 00000000..a47d3c5e
--- /dev/null
+++ b/devdocs/python~3.12/library%2Ftkinter.tix.html
@@ -0,0 +1,136 @@
+ <span id="tkinter-tix-extension-widgets-for-tk"></span><h1>tkinter.tix — Extension widgets for Tk</h1> <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/tkinter/tix.py">Lib/tkinter/tix.py</a></p> <div class="deprecated" id="index-0"> <p><span class="versionmodified deprecated">Deprecated since version 3.6: </span>This Tk extension is unmaintained and should not be used in new code. Use <a class="reference internal" href="tkinter.ttk#module-tkinter.ttk" title="tkinter.ttk: Tk themed widget set"><code>tkinter.ttk</code></a> instead.</p> </div> <p>The <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> (Tk Interface Extension) module provides an additional rich set of widgets. Although the standard Tk library has many useful widgets, they are far from complete. The <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> library provides most of the commonly needed widgets that are missing from standard Tk: <a class="reference internal" href="#tkinter.tix.HList" title="tkinter.tix.HList"><code>HList</code></a>, <a class="reference internal" href="#tkinter.tix.ComboBox" title="tkinter.tix.ComboBox"><code>ComboBox</code></a>, <a class="reference internal" href="#tkinter.tix.Control" title="tkinter.tix.Control"><code>Control</code></a> (a.k.a. SpinBox) and an assortment of scrollable widgets. <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> also includes many more widgets that are generally useful in a wide range of applications: <a class="reference internal" href="#tkinter.tix.NoteBook" title="tkinter.tix.NoteBook"><code>NoteBook</code></a>, <a class="reference internal" href="#tkinter.tix.FileEntry" title="tkinter.tix.FileEntry"><code>FileEntry</code></a>, <a class="reference internal" href="#tkinter.tix.PanedWindow" title="tkinter.tix.PanedWindow"><code>PanedWindow</code></a>, etc; there are more than 40 of them.</p> <p>With all these new widgets, you can introduce new interaction techniques into applications, creating more useful and more intuitive user interfaces. You can design your application by choosing the most appropriate widgets to match the special needs of your application and users.</p> <div class="admonition seealso"> <p class="admonition-title">See also</p> <dl class="simple"> <dt><a class="reference external" href="https://tix.sourceforge.net/">Tix Homepage</a></dt>
+<dd>
+<p>The home page for <code>Tix</code>. This includes links to additional documentation and downloads.</p> </dd> <dt><a class="reference external" href="https://tix.sourceforge.net/dist/current/man/">Tix Man Pages</a></dt>
+<dd>
+<p>On-line version of the man pages and reference material.</p> </dd> <dt><a class="reference external" href="https://tix.sourceforge.net/dist/current/docs/tix-book/tix.book.html">Tix Programming Guide</a></dt>
+<dd>
+<p>On-line version of the programmer’s reference material.</p> </dd> <dt><a class="reference external" href="https://tix.sourceforge.net/Tixapps/src/Tide.html">Tix Development Applications</a></dt>
+<dd>
+<p>Tix applications for development of Tix and Tkinter programs. Tide applications work under Tk or Tkinter, and include <strong class="program">TixInspect</strong>, an inspector to remotely modify and debug Tix/Tk/Tkinter applications.</p> </dd> </dl> </div> <section id="using-tix"> <h2>Using Tix</h2> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Tk">
+<code>class tkinter.tix.Tk(screenName=None, baseName=None, className='Tix')</code> </dt> <dd>
+<p>Toplevel widget of Tix which represents mostly the main window of an application. It has an associated Tcl interpreter.</p> <p>Classes in the <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> module subclasses the classes in the <a class="reference internal" href="tkinter#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code>tkinter</code></a>. The former imports the latter, so to use <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> with Tkinter, all you need to do is to import one module. In general, you can just import <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a>, and replace the toplevel call to <a class="reference internal" href="tkinter#tkinter.Tk" title="tkinter.Tk"><code>tkinter.Tk</code></a> with <code>tix.Tk</code>:</p> <pre data-language="python">from tkinter import tix
+from tkinter.constants import *
+root = tix.Tk()
+</pre> </dd>
+</dl> <p>To use <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a>, you must have the Tix widgets installed, usually alongside your installation of the Tk widgets. To test your installation, try the following:</p> <pre data-language="python">from tkinter import tix
+root = tix.Tk()
+root.tk.eval('package require Tix')
+</pre> </section> <section id="tix-widgets"> <h2>Tix Widgets</h2> <p><a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm">Tix</a> introduces over 40 widget classes to the <a class="reference internal" href="tkinter#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code>tkinter</code></a> repertoire.</p> <section id="basic-widgets"> <h3>Basic Widgets</h3> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Balloon">
+<code>class tkinter.tix.Balloon</code> </dt> <dd>
+<p>A <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm">Balloon</a> that pops up over a widget to provide help. When the user moves the cursor inside a widget to which a Balloon widget has been bound, a small pop-up window with a descriptive message will be shown on the screen.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.ButtonBox">
+<code>class tkinter.tix.ButtonBox</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm">ButtonBox</a> widget creates a box of buttons, such as is commonly used for <code>Ok Cancel</code>.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.ComboBox">
+<code>class tkinter.tix.ComboBox</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm">ComboBox</a> widget is similar to the combo box control in MS Windows. The user can select a choice by either typing in the entry subwidget or selecting from the listbox subwidget.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Control">
+<code>class tkinter.tix.Control</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm">Control</a> widget is also known as the <code>SpinBox</code> widget. The user can adjust the value by pressing the two arrow buttons or by entering the value directly into the entry. The new value will be checked against the user-defined upper and lower limits.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.LabelEntry">
+<code>class tkinter.tix.LabelEntry</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelEntry.htm">LabelEntry</a> widget packages an entry widget and a label into one mega widget. It can be used to simplify the creation of “entry-form” type of interface.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.LabelFrame">
+<code>class tkinter.tix.LabelFrame</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelFrame.htm">LabelFrame</a> widget packages a frame widget and a label into one mega widget. To create widgets inside a LabelFrame widget, one creates the new widgets relative to the <code>frame</code> subwidget and manage them inside the <code>frame</code> subwidget.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Meter">
+<code>class tkinter.tix.Meter</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixMeter.htm">Meter</a> widget can be used to show the progress of a background job which may take a long time to execute.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.OptionMenu">
+<code>class tkinter.tix.OptionMenu</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixOptionMenu.htm">OptionMenu</a> creates a menu button of options.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.PopupMenu">
+<code>class tkinter.tix.PopupMenu</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixPopupMenu.htm">PopupMenu</a> widget can be used as a replacement of the <code>tk_popup</code> command. The advantage of the <code>Tix</code> <a class="reference internal" href="#tkinter.tix.PopupMenu" title="tkinter.tix.PopupMenu"><code>PopupMenu</code></a> widget is it requires less application code to manipulate.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Select">
+<code>class tkinter.tix.Select</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixSelect.htm">Select</a> widget is a container of button subwidgets. It can be used to provide radio-box or check-box style of selection options for the user.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.StdButtonBox">
+<code>class tkinter.tix.StdButtonBox</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixStdButtonBox.htm">StdButtonBox</a> widget is a group of standard buttons for Motif-like dialog boxes.</p> </dd>
+</dl> </section> <section id="file-selectors"> <h3>File Selectors</h3> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.DirList">
+<code>class tkinter.tix.DirList</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixDirList.htm">DirList</a> widget displays a list view of a directory, its previous directories and its sub-directories. The user can choose one of the directories displayed in the list or change to another directory.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.DirTree">
+<code>class tkinter.tix.DirTree</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixDirTree.htm">DirTree</a> widget displays a tree view of a directory, its previous directories and its sub-directories. The user can choose one of the directories displayed in the list or change to another directory.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.DirSelectDialog">
+<code>class tkinter.tix.DirSelectDialog</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixDirSelectDialog.htm">DirSelectDialog</a> widget presents the directories in the file system in a dialog window. The user can use this dialog window to navigate through the file system to select the desired directory.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.DirSelectBox">
+<code>class tkinter.tix.DirSelectBox</code> </dt> <dd>
+<p>The <a class="reference internal" href="#tkinter.tix.DirSelectBox" title="tkinter.tix.DirSelectBox"><code>DirSelectBox</code></a> is similar to the standard Motif(TM) directory-selection box. It is generally used for the user to choose a directory. DirSelectBox stores the directories mostly recently selected into a ComboBox widget so that they can be quickly selected again.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.ExFileSelectBox">
+<code>class tkinter.tix.ExFileSelectBox</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixExFileSelectBox.htm">ExFileSelectBox</a> widget is usually embedded in a tixExFileSelectDialog widget. It provides a convenient method for the user to select files. The style of the <a class="reference internal" href="#tkinter.tix.ExFileSelectBox" title="tkinter.tix.ExFileSelectBox"><code>ExFileSelectBox</code></a> widget is very similar to the standard file dialog on MS Windows 3.1.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.FileSelectBox">
+<code>class tkinter.tix.FileSelectBox</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixFileSelectBox.htm">FileSelectBox</a> is similar to the standard Motif(TM) file-selection box. It is generally used for the user to choose a file. FileSelectBox stores the files mostly recently selected into a <a class="reference internal" href="#tkinter.tix.ComboBox" title="tkinter.tix.ComboBox"><code>ComboBox</code></a> widget so that they can be quickly selected again.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.FileEntry">
+<code>class tkinter.tix.FileEntry</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixFileEntry.htm">FileEntry</a> widget can be used to input a filename. The user can type in the filename manually. Alternatively, the user can press the button widget that sits next to the entry, which will bring up a file selection dialog.</p> </dd>
+</dl> </section> <section id="hierarchical-listbox"> <h3>Hierarchical ListBox</h3> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.HList">
+<code>class tkinter.tix.HList</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixHList.htm">HList</a> widget can be used to display any data that have a hierarchical structure, for example, file system directory trees. The list entries are indented and connected by branch lines according to their places in the hierarchy.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.CheckList">
+<code>class tkinter.tix.CheckList</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixCheckList.htm">CheckList</a> widget displays a list of items to be selected by the user. CheckList acts similarly to the Tk checkbutton or radiobutton widgets, except it is capable of handling many more items than checkbuttons or radiobuttons.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Tree">
+<code>class tkinter.tix.Tree</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixTree.htm">Tree</a> widget can be used to display hierarchical data in a tree form. The user can adjust the view of the tree by opening or closing parts of the tree.</p> </dd>
+</dl> </section> <section id="tabular-listbox"> <h3>Tabular ListBox</h3> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.TList">
+<code>class tkinter.tix.TList</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixTList.htm">TList</a> widget can be used to display data in a tabular format. The list entries of a <a class="reference internal" href="#tkinter.tix.TList" title="tkinter.tix.TList"><code>TList</code></a> widget are similar to the entries in the Tk listbox widget. The main differences are (1) the <a class="reference internal" href="#tkinter.tix.TList" title="tkinter.tix.TList"><code>TList</code></a> widget can display the list entries in a two dimensional format and (2) you can use graphical images as well as multiple colors and fonts for the list entries.</p> </dd>
+</dl> </section> <section id="manager-widgets"> <h3>Manager Widgets</h3> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.PanedWindow">
+<code>class tkinter.tix.PanedWindow</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixPanedWindow.htm">PanedWindow</a> widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally. The user changes the sizes of the panes by dragging the resize handle between two panes.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.ListNoteBook">
+<code>class tkinter.tix.ListNoteBook</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixListNoteBook.htm">ListNoteBook</a> widget is very similar to the <code>TixNoteBook</code> widget: it can be used to display many windows in a limited space using a notebook metaphor. The notebook is divided into a stack of pages (windows). At one time only one of these pages can be shown. The user can navigate through these pages by choosing the name of the desired page in the <code>hlist</code> subwidget.</p> </dd>
+</dl> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.NoteBook">
+<code>class tkinter.tix.NoteBook</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixNoteBook.htm">NoteBook</a> widget can be used to display many windows in a limited space using a notebook metaphor. The notebook is divided into a stack of pages. At one time only one of these pages can be shown. The user can navigate through these pages by choosing the visual “tabs” at the top of the NoteBook widget.</p> </dd>
+</dl> </section> <section id="image-types"> <h3>Image Types</h3> <p>The <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> module adds:</p> <ul class="simple"> <li>
+<a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/pixmap.htm">pixmap</a> capabilities to all <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> and <a class="reference internal" href="tkinter#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code>tkinter</code></a> widgets to create color images from XPM files. </li> <li>
+<a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/compound.htm">Compound</a> image types can be used to create images that consists of multiple horizontal lines; each line is composed of a series of items (texts, bitmaps, images or spaces) arranged from left to right. For example, a compound image can be used to display a bitmap and a text string simultaneously in a Tk <code>Button</code> widget. </li> </ul> </section> <section id="miscellaneous-widgets"> <h3>Miscellaneous Widgets</h3> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.InputOnly">
+<code>class tkinter.tix.InputOnly</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixInputOnly.htm">InputOnly</a> widgets are to accept inputs from the user, which can be done with the <code>bind</code> command (Unix only).</p> </dd>
+</dl> </section> <section id="form-geometry-manager"> <h3>Form Geometry Manager</h3> <p>In addition, <a class="reference internal" href="#module-tkinter.tix" title="tkinter.tix: Tk Extension Widgets for Tkinter"><code>tkinter.tix</code></a> augments <a class="reference internal" href="tkinter#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code>tkinter</code></a> by providing:</p> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.Form">
+<code>class tkinter.tix.Form</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tixForm.htm">Form</a> geometry manager based on attachment rules for all Tk widgets.</p> </dd>
+</dl> </section> </section> <section id="tix-commands"> <h2>Tix Commands</h2> <dl class="py class"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand">
+<code>class tkinter.tix.tixCommand</code> </dt> <dd>
+<p>The <a class="reference external" href="https://tix.sourceforge.net/dist/current/man/html/TixCmd/tix.htm">tix commands</a> provide access to miscellaneous elements of <code>Tix</code>’s internal state and the <code>Tix</code> application context. Most of the information manipulated by these methods pertains to the application as a whole, or to a screen or display, rather than to a particular window.</p> <p>To view the current settings, the common usage is:</p> <pre data-language="python">from tkinter import tix
+root = tix.Tk()
+print(root.tix_configure())
+</pre> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_configure">
+<code>tixCommand.tix_configure(cnf=None, **kw)</code> </dt> <dd>
+<p>Query or modify the configuration options of the Tix application context. If no option is specified, returns a dictionary all of the available options. If option is specified with no value, then the method returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the method modifies the given option(s) to have the given value(s); in this case the method returns an empty string. Option may be any of the configuration options.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_cget">
+<code>tixCommand.tix_cget(option)</code> </dt> <dd>
+<p>Returns the current value of the configuration option given by <em>option</em>. Option may be any of the configuration options.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_getbitmap">
+<code>tixCommand.tix_getbitmap(name)</code> </dt> <dd>
+<p>Locates a bitmap file of the name <code>name.xpm</code> or <code>name</code> in one of the bitmap directories (see the <a class="reference internal" href="#tkinter.tix.tixCommand.tix_addbitmapdir" title="tkinter.tix.tixCommand.tix_addbitmapdir"><code>tix_addbitmapdir()</code></a> method). By using <a class="reference internal" href="#tkinter.tix.tixCommand.tix_getbitmap" title="tkinter.tix.tixCommand.tix_getbitmap"><code>tix_getbitmap()</code></a>, you can avoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the complete pathname of the bitmap file, prefixed with the character <code>@</code>. The returned value can be used to configure the <code>bitmap</code> option of the Tk and Tix widgets.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_addbitmapdir">
+<code>tixCommand.tix_addbitmapdir(directory)</code> </dt> <dd>
+<p>Tix maintains a list of directories under which the <a class="reference internal" href="#tkinter.tix.tixCommand.tix_getimage" title="tkinter.tix.tixCommand.tix_getimage"><code>tix_getimage()</code></a> and <a class="reference internal" href="#tkinter.tix.tixCommand.tix_getbitmap" title="tkinter.tix.tixCommand.tix_getbitmap"><code>tix_getbitmap()</code></a> methods will search for image files. The standard bitmap directory is <code>$TIX_LIBRARY/bitmaps</code>. The <a class="reference internal" href="#tkinter.tix.tixCommand.tix_addbitmapdir" title="tkinter.tix.tixCommand.tix_addbitmapdir"><code>tix_addbitmapdir()</code></a> method adds <em>directory</em> into this list. By using this method, the image files of an applications can also be located using the <a class="reference internal" href="#tkinter.tix.tixCommand.tix_getimage" title="tkinter.tix.tixCommand.tix_getimage"><code>tix_getimage()</code></a> or <a class="reference internal" href="#tkinter.tix.tixCommand.tix_getbitmap" title="tkinter.tix.tixCommand.tix_getbitmap"><code>tix_getbitmap()</code></a> method.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_filedialog">
+<code>tixCommand.tix_filedialog([dlgclass])</code> </dt> <dd>
+<p>Returns the file selection dialog that may be shared among different calls from this application. This method will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to <a class="reference internal" href="#tkinter.tix.tixCommand.tix_filedialog" title="tkinter.tix.tixCommand.tix_filedialog"><code>tix_filedialog()</code></a>. An optional dlgclass parameter can be passed as a string to specified what type of file selection dialog widget is desired. Possible options are <code>tix</code>, <code>FileSelectDialog</code> or <code>tixExFileSelectDialog</code>.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_getimage">
+<code>tixCommand.tix_getimage(self, name)</code> </dt> <dd>
+<p>Locates an image file of the name <code>name.xpm</code>, <code>name.xbm</code> or <code>name.ppm</code> in one of the bitmap directories (see the <a class="reference internal" href="#tkinter.tix.tixCommand.tix_addbitmapdir" title="tkinter.tix.tixCommand.tix_addbitmapdir"><code>tix_addbitmapdir()</code></a> method above). If more than one file with the same name (but different extensions) exist, then the image type is chosen according to the depth of the X display: xbm images are chosen on monochrome displays and color images are chosen on color displays. By using <a class="reference internal" href="#tkinter.tix.tixCommand.tix_getimage" title="tkinter.tix.tixCommand.tix_getimage"><code>tix_getimage()</code></a>, you can avoid hard coding the pathnames of the image files in your application. When successful, this method returns the name of the newly created image, which can be used to configure the <code>image</code> option of the Tk and Tix widgets.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_option_get">
+<code>tixCommand.tix_option_get(name)</code> </dt> <dd>
+<p>Gets the options maintained by the Tix scheme mechanism.</p> </dd>
+</dl> <dl class="py method"> <dt class="sig sig-object py" id="tkinter.tix.tixCommand.tix_resetoptions">
+<code>tixCommand.tix_resetoptions(newScheme, newFontSet[, newScmPrio])</code> </dt> <dd>
+<p>Resets the scheme and fontset of the Tix application to <em>newScheme</em> and <em>newFontSet</em>, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetoptions method before the creation of any widgets in a Tix application.</p> <p>The optional parameter <em>newScmPrio</em> can be given to reset the priority level of the Tk options set by the Tix schemes.</p> <p>Because of the way Tk handles the X option database, after Tix has been has imported and inited, it is not possible to reset the color schemes and font sets using the <code>tix_config()</code> method. Instead, the <a class="reference internal" href="#tkinter.tix.tixCommand.tix_resetoptions" title="tkinter.tix.tixCommand.tix_resetoptions"><code>tix_resetoptions()</code></a> method must be used.</p> </dd>
+</dl> </section> <div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2001&ndash;2023 Python Software Foundation<br>Licensed under the PSF License.<br>
+ <a href="https://docs.python.org/3.12/library/tkinter.tix.html" class="_attribution-link">https://docs.python.org/3.12/library/tkinter.tix.html</a>
+ </p>
+</div>