~ubuntu-branches/ubuntu/karmic/python3.0/karmic

« back to all changes in this revision

Viewing changes to Doc/library/tkinter.tix.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-16 17:18:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216171823-1d5cm5qnnjvmnzzm
Tags: 3.0.1-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
.. index:: single: Tix
10
10
 
11
 
The :mod:`tkinter.tix` (Tk Interface Extension) module provides an additional 
12
 
rich set of widgets. Although the standard Tk library has many useful widgets, 
 
11
The :mod:`tkinter.tix` (Tk Interface Extension) module provides an additional
 
12
rich set of widgets. Although the standard Tk library has many useful widgets,
13
13
they are far from complete. The :mod:`tkinter.tix` library provides most of the
14
 
commonly needed widgets that are missing from standard Tk: :class:`HList`, 
15
 
:class:`ComboBox`, :class:`Control` (a.k.a. SpinBox) and an assortment of 
16
 
scrollable widgets. 
 
14
commonly needed widgets that are missing from standard Tk: :class:`HList`,
 
15
:class:`ComboBox`, :class:`Control` (a.k.a. SpinBox) and an assortment of
 
16
scrollable widgets.
17
17
:mod:`tkinter.tix` also includes many more widgets that are generally useful in
18
18
a wide range of applications: :class:`NoteBook`, :class:`FileEntry`,
19
19
:class:`PanedWindow`, etc; there are more than 40 of them.
50
50
   Toplevel widget of Tix which represents mostly the main window of an
51
51
   application. It has an associated Tcl interpreter.
52
52
 
53
 
   Classes in the :mod:`tkinter.tix` module subclasses the classes in the 
54
 
   :mod:`tkinter`. The former imports the latter, so to use :mod:`tkinter.tix` 
55
 
   with Tkinter, all you need to do is to import one module. In general, you 
56
 
   can just import :mod:`tkinter.tix`, and replace the toplevel call to 
 
53
   Classes in the :mod:`tkinter.tix` module subclasses the classes in the
 
54
   :mod:`tkinter`. The former imports the latter, so to use :mod:`tkinter.tix`
 
55
   with Tkinter, all you need to do is to import one module. In general, you
 
56
   can just import :mod:`tkinter.tix`, and replace the toplevel call to
57
57
   :class:`tkinter.Tk` with :class:`tix.Tk`::
58
58
 
59
59
      from tkinter import tix
437
437
The :mod:`tkinter.tix` module adds:
438
438
 
439
439
* `pixmap <http://tix.sourceforge.net/dist/current/man/html/TixCmd/pixmap.htm>`_
440
 
  capabilities to all :mod:`tkinter.tix` and :mod:`tkinter` widgets to create 
 
440
  capabilities to all :mod:`tkinter.tix` and :mod:`tkinter` widgets to create
441
441
  color images from XPM files.
442
442
 
443
443
  .. Python Demo of: