blob: 4701c1583cde94ccd9bffbd87f3e2ed24e07e26a [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001:mod:`Tix` --- Extension widgets for Tk
2=======================================
3
4.. module:: Tix
5 :synopsis: Tk Extension Widgets for Tkinter
6.. sectionauthor:: Mike Clarkson <mikeclarkson@users.sourceforge.net>
7
8
9.. index:: single: Tix
10
11The :mod:`Tix` (Tk Interface Extension) module provides an additional rich set
12of widgets. Although the standard Tk library has many useful widgets, they are
13far from complete. The :mod:`Tix` library provides most of the commonly needed
14widgets that are missing from standard Tk: :class:`HList`, :class:`ComboBox`,
15:class:`Control` (a.k.a. SpinBox) and an assortment of scrollable widgets.
16:mod:`Tix` also includes many more widgets that are generally useful in a wide
17range of applications: :class:`NoteBook`, :class:`FileEntry`,
18:class:`PanedWindow`, etc; there are more than 40 of them.
19
20With all these new widgets, you can introduce new interaction techniques into
21applications, creating more useful and more intuitive user interfaces. You can
22design your application by choosing the most appropriate widgets to match the
23special needs of your application and users.
24
25
26.. seealso::
27
28 `Tix Homepage <http://tix.sourceforge.net/>`_
29 The home page for :mod:`Tix`. This includes links to additional documentation
30 and downloads.
31
32 `Tix Man Pages <http://tix.sourceforge.net/dist/current/man/>`_
33 On-line version of the man pages and reference material.
34
35 `Tix Programming Guide <http://tix.sourceforge.net/dist/current/docs/tix-book/tix.book.html>`_
36 On-line version of the programmer's reference material.
37
38 `Tix Development Applications <http://tix.sourceforge.net/Tide/>`_
39 Tix applications for development of Tix and Tkinter programs. Tide applications
40 work under Tk or Tkinter, and include :program:`TixInspect`, an inspector to
41 remotely modify and debug Tix/Tk/Tkinter applications.
42
43
44Using Tix
45---------
46
47
48.. class:: Tix(screenName[, baseName[, className]])
49
50 Toplevel widget of Tix which represents mostly the main window of an
51 application. It has an associated Tcl interpreter.
52
53 Classes in the :mod:`Tix` module subclasses the classes in the :mod:`Tkinter`
54 module. The former imports the latter, so to use :mod:`Tix` with Tkinter, all
55 you need to do is to import one module. In general, you can just import
56 :mod:`Tix`, and replace the toplevel call to :class:`Tkinter.Tk` with
57 :class:`Tix.Tk`::
58
59 import Tix
60 from Tkconstants import *
61 root = Tix.Tk()
62
63To use :mod:`Tix`, you must have the :mod:`Tix` widgets installed, usually
64alongside your installation of the Tk widgets. To test your installation, try
65the following::
66
67 import Tix
68 root = Tix.Tk()
69 root.tk.eval('package require Tix')
70
71If this fails, you have a Tk installation problem which must be resolved before
72proceeding. Use the environment variable :envvar:`TIX_LIBRARY` to point to the
73installed :mod:`Tix` library directory, and make sure you have the dynamic
74object library (:file:`tix8183.dll` or :file:`libtix8183.so`) in the same
75directory that contains your Tk dynamic object library (:file:`tk8183.dll` or
76:file:`libtk8183.so`). The directory with the dynamic object library should also
77have a file called :file:`pkgIndex.tcl` (case sensitive), which contains the
78line::
79
80 package ifneeded Tix 8.1 [list load "[file join $dir tix8183.dll]" Tix]
81
82.. % $ <-- bow to font-lock
83
84
85Tix Widgets
86-----------
87
88`Tix <http://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm>`_
89introduces over 40 widget classes to the :mod:`Tkinter` repertoire. There is a
90demo of all the :mod:`Tix` widgets in the :file:`Demo/tix` directory of the
91standard distribution.
92
93.. % The Python sample code is still being added to Python, hence commented out
94
95
96Basic Widgets
97^^^^^^^^^^^^^
98
99
100.. class:: Balloon()
101
102 A `Balloon
103 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm>`_ that
104 pops up over a widget to provide help. When the user moves the cursor inside a
105 widget to which a Balloon widget has been bound, a small pop-up window with a
106 descriptive message will be shown on the screen.
107
108.. % Python Demo of:
109.. % \ulink{Balloon}{http://tix.sourceforge.net/dist/current/demos/samples/Balloon.tcl}
110
111
112.. class:: ButtonBox()
113
114 The `ButtonBox
115 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm>`_
116 widget creates a box of buttons, such as is commonly used for ``Ok Cancel``.
117
118.. % Python Demo of:
119.. % \ulink{ButtonBox}{http://tix.sourceforge.net/dist/current/demos/samples/BtnBox.tcl}
120
121
122.. class:: ComboBox()
123
124 The `ComboBox
125 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm>`_
126 widget is similar to the combo box control in MS Windows. The user can select a
127 choice by either typing in the entry subwdget or selecting from the listbox
128 subwidget.
129
130.. % Python Demo of:
131.. % \ulink{ComboBox}{http://tix.sourceforge.net/dist/current/demos/samples/ComboBox.tcl}
132
133
134.. class:: Control()
135
136 The `Control
137 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm>`_
138 widget is also known as the :class:`SpinBox` widget. The user can adjust the
139 value by pressing the two arrow buttons or by entering the value directly into
140 the entry. The new value will be checked against the user-defined upper and
141 lower limits.
142
143.. % Python Demo of:
144.. % \ulink{Control}{http://tix.sourceforge.net/dist/current/demos/samples/Control.tcl}
145
146
147.. class:: LabelEntry()
148
149 The `LabelEntry
150 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelEntry.htm>`_
151 widget packages an entry widget and a label into one mega widget. It can be used
152 be used to simplify the creation of "entry-form" type of interface.
153
154.. % Python Demo of:
155.. % \ulink{LabelEntry}{http://tix.sourceforge.net/dist/current/demos/samples/LabEntry.tcl}
156
157
158.. class:: LabelFrame()
159
160 The `LabelFrame
161 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelFrame.htm>`_
162 widget packages a frame widget and a label into one mega widget. To create
163 widgets inside a LabelFrame widget, one creates the new widgets relative to the
164 :attr:`frame` subwidget and manage them inside the :attr:`frame` subwidget.
165
166.. % Python Demo of:
167.. % \ulink{LabelFrame}{http://tix.sourceforge.net/dist/current/demos/samples/LabFrame.tcl}
168
169
170.. class:: Meter()
171
172 The `Meter
173 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixMeter.htm>`_ widget
174 can be used to show the progress of a background job which may take a long time
175 to execute.
176
177.. % Python Demo of:
178.. % \ulink{Meter}{http://tix.sourceforge.net/dist/current/demos/samples/Meter.tcl}
179
180
181.. class:: OptionMenu()
182
183 The `OptionMenu
184 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixOptionMenu.htm>`_
185 creates a menu button of options.
186
187.. % Python Demo of:
188.. % \ulink{OptionMenu}{http://tix.sourceforge.net/dist/current/demos/samples/OptMenu.tcl}
189
190
191.. class:: PopupMenu()
192
193 The `PopupMenu
194 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixPopupMenu.htm>`_
195 widget can be used as a replacement of the ``tk_popup`` command. The advantage
196 of the :mod:`Tix` :class:`PopupMenu` widget is it requires less application code
197 to manipulate.
198
199.. % Python Demo of:
200.. % \ulink{PopupMenu}{http://tix.sourceforge.net/dist/current/demos/samples/PopMenu.tcl}
201
202
203.. class:: Select()
204
205 The `Select
206 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixSelect.htm>`_ widget
207 is a container of button subwidgets. It can be used to provide radio-box or
208 check-box style of selection options for the user.
209
210.. % Python Demo of:
211.. % \ulink{Select}{http://tix.sourceforge.net/dist/current/demos/samples/Select.tcl}
212
213
214.. class:: StdButtonBox()
215
216 The `StdButtonBox
217 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixStdButtonBox.htm>`_
218 widget is a group of standard buttons for Motif-like dialog boxes.
219
220.. % Python Demo of:
221.. % \ulink{StdButtonBox}{http://tix.sourceforge.net/dist/current/demos/samples/StdBBox.tcl}
222
223
224File Selectors
225^^^^^^^^^^^^^^
226
227
228.. class:: DirList()
229
230 The `DirList
231 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixDirList.htm>`_
232 widget displays a list view of a directory, its previous directories and its
233 sub-directories. The user can choose one of the directories displayed in the
234 list or change to another directory.
235
236.. % Python Demo of:
237.. % \ulink{DirList}{http://tix.sourceforge.net/dist/current/demos/samples/DirList.tcl}
238
239
240.. class:: DirTree()
241
242 The `DirTree
243 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixDirTree.htm>`_
244 widget displays a tree view of a directory, its previous directories and its
245 sub-directories. The user can choose one of the directories displayed in the
246 list or change to another directory.
247
248.. % Python Demo of:
249.. % \ulink{DirTree}{http://tix.sourceforge.net/dist/current/demos/samples/DirTree.tcl}
250
251
252.. class:: DirSelectDialog()
253
254 The `DirSelectDialog
255 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixDirSelectDialog.htm>`_
256 widget presents the directories in the file system in a dialog window. The user
257 can use this dialog window to navigate through the file system to select the
258 desired directory.
259
260.. % Python Demo of:
261.. % \ulink{DirSelectDialog}{http://tix.sourceforge.net/dist/current/demos/samples/DirDlg.tcl}
262
263
264.. class:: DirSelectBox()
265
266 The :class:`DirSelectBox` is similar to the standard Motif(TM)
267 directory-selection box. It is generally used for the user to choose a
268 directory. DirSelectBox stores the directories mostly recently selected into
269 a ComboBox widget so that they can be quickly selected again.
270
271
272.. class:: ExFileSelectBox()
273
274 The `ExFileSelectBox
275 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixExFileSelectBox.htm>`_
276 widget is usually embedded in a tixExFileSelectDialog widget. It provides an
277 convenient method for the user to select files. The style of the
278 :class:`ExFileSelectBox` widget is very similar to the standard file dialog on
279 MS Windows 3.1.
280
281.. % Python Demo of:
282.. % \ulink{ExFileSelectDialog}{http://tix.sourceforge.net/dist/current/demos/samples/EFileDlg.tcl}
283
284
285.. class:: FileSelectBox()
286
287 The `FileSelectBox
288 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixFileSelectBox.htm>`_
289 is similar to the standard Motif(TM) file-selection box. It is generally used
290 for the user to choose a file. FileSelectBox stores the files mostly recently
291 selected into a :class:`ComboBox` widget so that they can be quickly selected
292 again.
293
294.. % Python Demo of:
295.. % \ulink{FileSelectDialog}{http://tix.sourceforge.net/dist/current/demos/samples/FileDlg.tcl}
296
297
298.. class:: FileEntry()
299
300 The `FileEntry
301 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixFileEntry.htm>`_
302 widget can be used to input a filename. The user can type in the filename
303 manually. Alternatively, the user can press the button widget that sits next to
304 the entry, which will bring up a file selection dialog.
305
306.. % Python Demo of:
307.. % \ulink{FileEntry}{http://tix.sourceforge.net/dist/current/demos/samples/FileEnt.tcl}
308
309
310Hierachical ListBox
311^^^^^^^^^^^^^^^^^^^
312
313
314.. class:: HList()
315
316 The `HList
317 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixHList.htm>`_ widget
318 can be used to display any data that have a hierarchical structure, for example,
319 file system directory trees. The list entries are indented and connected by
320 branch lines according to their places in the hierarchy.
321
322.. % Python Demo of:
323.. % \ulink{HList}{http://tix.sourceforge.net/dist/current/demos/samples/HList1.tcl}
324
325
326.. class:: CheckList()
327
328 The `CheckList
329 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixCheckList.htm>`_
330 widget displays a list of items to be selected by the user. CheckList acts
331 similarly to the Tk checkbutton or radiobutton widgets, except it is capable of
332 handling many more items than checkbuttons or radiobuttons.
333
334.. % Python Demo of:
335.. % \ulink{ CheckList}{http://tix.sourceforge.net/dist/current/demos/samples/ChkList.tcl}
336.. % Python Demo of:
337.. % \ulink{ScrolledHList (1)}{http://tix.sourceforge.net/dist/current/demos/samples/SHList.tcl}
338.. % Python Demo of:
339.. % \ulink{ScrolledHList (2)}{http://tix.sourceforge.net/dist/current/demos/samples/SHList2.tcl}
340
341
342.. class:: Tree()
343
344 The `Tree
345 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixTree.htm>`_ widget
346 can be used to display hierarchical data in a tree form. The user can adjust the
347 view of the tree by opening or closing parts of the tree.
348
349.. % Python Demo of:
350.. % \ulink{Tree}{http://tix.sourceforge.net/dist/current/demos/samples/Tree.tcl}
351.. % Python Demo of:
352.. % \ulink{Tree (Dynamic)}{http://tix.sourceforge.net/dist/current/demos/samples/DynTree.tcl}
353
354
355Tabular ListBox
356^^^^^^^^^^^^^^^
357
358
359.. class:: TList()
360
361 The `TList
362 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixTList.htm>`_ widget
363 can be used to display data in a tabular format. The list entries of a
364 :class:`TList` widget are similar to the entries in the Tk listbox widget. The
365 main differences are (1) the :class:`TList` widget can display the list entries
366 in a two dimensional format and (2) you can use graphical images as well as
367 multiple colors and fonts for the list entries.
368
369.. % Python Demo of:
370.. % \ulink{ScrolledTList (1)}{http://tix.sourceforge.net/dist/current/demos/samples/STList1.tcl}
371.. % Python Demo of:
372.. % \ulink{ScrolledTList (2)}{http://tix.sourceforge.net/dist/current/demos/samples/STList2.tcl}
373.. % Grid has yet to be added to Python
374.. % \subsubsection{Grid Widget}
375.. % Python Demo of:
376.. % \ulink{Simple Grid}{http://tix.sourceforge.net/dist/current/demos/samples/SGrid0.tcl}
377.. % Python Demo of:
378.. % \ulink{ScrolledGrid}{http://tix.sourceforge.net/dist/current/demos/samples/SGrid1.tcl}
379.. % Python Demo of:
380.. % \ulink{Editable Grid}{http://tix.sourceforge.net/dist/current/demos/samples/EditGrid.tcl}
381
382
383Manager Widgets
384^^^^^^^^^^^^^^^
385
386
387.. class:: PanedWindow()
388
389 The `PanedWindow
390 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixPanedWindow.htm>`_
391 widget allows the user to interactively manipulate the sizes of several panes.
392 The panes can be arranged either vertically or horizontally. The user changes
393 the sizes of the panes by dragging the resize handle between two panes.
394
395.. % Python Demo of:
396.. % \ulink{PanedWindow}{http://tix.sourceforge.net/dist/current/demos/samples/PanedWin.tcl}
397
398
399.. class:: ListNoteBook()
400
401 The `ListNoteBook
402 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixListNoteBook.htm>`_
403 widget is very similar to the :class:`TixNoteBook` widget: it can be used to
404 display many windows in a limited space using a notebook metaphor. The notebook
405 is divided into a stack of pages (windows). At one time only one of these pages
406 can be shown. The user can navigate through these pages by choosing the name of
407 the desired page in the :attr:`hlist` subwidget.
408
409.. % Python Demo of:
410.. % \ulink{ListNoteBook}{http://tix.sourceforge.net/dist/current/demos/samples/ListNBK.tcl}
411
412
413.. class:: NoteBook()
414
415 The `NoteBook
416 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixNoteBook.htm>`_
417 widget can be used to display many windows in a limited space using a notebook
418 metaphor. The notebook is divided into a stack of pages. At one time only one of
419 these pages can be shown. The user can navigate through these pages by choosing
420 the visual "tabs" at the top of the NoteBook widget.
421
422.. % Python Demo of:
423.. % \ulink{NoteBook}{http://tix.sourceforge.net/dist/current/demos/samples/NoteBook.tcl}
424
425.. % \subsubsection{Scrolled Widgets}
426.. % Python Demo of:
427.. % \ulink{ScrolledListBox}{http://tix.sourceforge.net/dist/current/demos/samples/SListBox.tcl}
428.. % Python Demo of:
429.. % \ulink{ScrolledText}{http://tix.sourceforge.net/dist/current/demos/samples/SText.tcl}
430.. % Python Demo of:
431.. % \ulink{ScrolledWindow}{http://tix.sourceforge.net/dist/current/demos/samples/SWindow.tcl}
432.. % Python Demo of:
433.. % \ulink{Canvas Object View}{http://tix.sourceforge.net/dist/current/demos/samples/CObjView.tcl}
434
435
436Image Types
437^^^^^^^^^^^
438
439The :mod:`Tix` module adds:
440
441* `pixmap <http://tix.sourceforge.net/dist/current/man/html/TixCmd/pixmap.htm>`_
442 capabilities to all :mod:`Tix` and :mod:`Tkinter` widgets to create color images
443 from XPM files.
444
445 .. % Python Demo of:
446 .. % \ulink{XPM Image In Button}{http://tix.sourceforge.net/dist/current/demos/samples/Xpm.tcl}
447 .. % Python Demo of:
448 .. % \ulink{XPM Image In Menu}{http://tix.sourceforge.net/dist/current/demos/samples/Xpm1.tcl}
449
450* `Compound
451 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/compound.htm>`_ image
452 types can be used to create images that consists of multiple horizontal lines;
453 each line is composed of a series of items (texts, bitmaps, images or spaces)
454 arranged from left to right. For example, a compound image can be used to
455 display a bitmap and a text string simultaneously in a Tk :class:`Button`
456 widget.
457
458 .. % Python Demo of:
459 .. % \ulink{Compound Image In Buttons}{http://tix.sourceforge.net/dist/current/demos/samples/CmpImg.tcl}
460 .. % Python Demo of:
461 .. % \ulink{Compound Image In NoteBook}{http://tix.sourceforge.net/dist/current/demos/samples/CmpImg2.tcl}
462 .. % Python Demo of:
463 .. % \ulink{Compound Image Notebook Color Tabs}{http://tix.sourceforge.net/dist/current/demos/samples/CmpImg4.tcl}
464 .. % Python Demo of:
465 .. % \ulink{Compound Image Icons}{http://tix.sourceforge.net/dist/current/demos/samples/CmpImg3.tcl}
466
467
468Miscellaneous Widgets
469^^^^^^^^^^^^^^^^^^^^^
470
471
472.. class:: InputOnly()
473
474 The `InputOnly
475 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixInputOnly.htm>`_
476 widgets are to accept inputs from the user, which can be done with the ``bind``
477 command (Unix only).
478
479
480Form Geometry Manager
481^^^^^^^^^^^^^^^^^^^^^
482
483In addition, :mod:`Tix` augments :mod:`Tkinter` by providing:
484
485
486.. class:: Form()
487
488 The `Form
489 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixForm.htm>`_ geometry
490 manager based on attachment rules for all Tk widgets.
491
492.. % begin{latexonly}
493.. % \subsection{Tix Class Structure}
494.. %
495.. % \begin{figure}[hbtp]
496.. % \centerline{\epsfig{file=hierarchy.png,width=.9\textwidth}}
497.. % \vspace{.5cm}
498.. % \caption{The Class Hierarchy of Tix Widgets}
499.. % \end{figure}
500.. % end{latexonly}
501
502
503Tix Commands
504------------
505
506
507.. class:: tixCommand()
508
509 The `tix commands
510 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tix.htm>`_ provide
511 access to miscellaneous elements of :mod:`Tix`'s internal state and the
512 :mod:`Tix` application context. Most of the information manipulated by these
513 methods pertains to the application as a whole, or to a screen or display,
514 rather than to a particular window.
515
516 To view the current settings, the common usage is::
517
518 import Tix
519 root = Tix.Tk()
520 print root.tix_configure()
521
522
523.. method:: tixCommand.tix_configure([cnf,] **kw)
524
525 Query or modify the configuration options of the Tix application context. If no
526 option is specified, returns a dictionary all of the available options. If
527 option is specified with no value, then the method returns a list describing the
528 one named option (this list will be identical to the corresponding sublist of
529 the value returned if no option is specified). If one or more option-value
530 pairs are specified, then the method modifies the given option(s) to have the
531 given value(s); in this case the method returns an empty string. Option may be
532 any of the configuration options.
533
534
535.. method:: tixCommand.tix_cget(option)
536
537 Returns the current value of the configuration option given by *option*. Option
538 may be any of the configuration options.
539
540
541.. method:: tixCommand.tix_getbitmap(name)
542
543 Locates a bitmap file of the name ``name.xpm`` or ``name`` in one of the bitmap
544 directories (see the :meth:`tix_addbitmapdir` method). By using
545 :meth:`tix_getbitmap`, you can avoid hard coding the pathnames of the bitmap
546 files in your application. When successful, it returns the complete pathname of
547 the bitmap file, prefixed with the character ``@``. The returned value can be
548 used to configure the ``bitmap`` option of the Tk and Tix widgets.
549
550
551.. method:: tixCommand.tix_addbitmapdir(directory)
552
553 Tix maintains a list of directories under which the :meth:`tix_getimage` and
554 :meth:`tix_getbitmap` methods will search for image files. The standard bitmap
555 directory is :file:`$TIX_LIBRARY/bitmaps`. The :meth:`tix_addbitmapdir` method
556 adds *directory* into this list. By using this method, the image files of an
557 applications can also be located using the :meth:`tix_getimage` or
558 :meth:`tix_getbitmap` method.
559
560
561.. method:: tixCommand.tix_filedialog([dlgclass])
562
563 Returns the file selection dialog that may be shared among different calls from
564 this application. This method will create a file selection dialog widget when
565 it is called the first time. This dialog will be returned by all subsequent
566 calls to :meth:`tix_filedialog`. An optional dlgclass parameter can be passed
567 as a string to specified what type of file selection dialog widget is desired.
568 Possible options are ``tix``, ``FileSelectDialog`` or ``tixExFileSelectDialog``.
569
570
571.. method:: tixCommand.tix_getimage(self, name)
572
573 Locates an image file of the name :file:`name.xpm`, :file:`name.xbm` or
574 :file:`name.ppm` in one of the bitmap directories (see the
575 :meth:`tix_addbitmapdir` method above). If more than one file with the same name
576 (but different extensions) exist, then the image type is chosen according to the
577 depth of the X display: xbm images are chosen on monochrome displays and color
578 images are chosen on color displays. By using :meth:`tix_getimage`, you can
579 avoid hard coding the pathnames of the image files in your application. When
580 successful, this method returns the name of the newly created image, which can
581 be used to configure the ``image`` option of the Tk and Tix widgets.
582
583
584.. method:: tixCommand.tix_option_get(name)
585
586 Gets the options maintained by the Tix scheme mechanism.
587
588
589.. method:: tixCommand.tix_resetoptions(newScheme, newFontSet[, newScmPrio])
590
591 Resets the scheme and fontset of the Tix application to *newScheme* and
592 *newFontSet*, respectively. This affects only those widgets created after this
593 call. Therefore, it is best to call the resetoptions method before the creation
594 of any widgets in a Tix application.
595
596 The optional parameter *newScmPrio* can be given to reset the priority level of
597 the Tk options set by the Tix schemes.
598
599 Because of the way Tk handles the X option database, after Tix has been has
600 imported and inited, it is not possible to reset the color schemes and font sets
601 using the :meth:`tix_config` method. Instead, the :meth:`tix_resetoptions`
602 method must be used.