Revision 44 as of 2007-04-01 12:06:34

Clear message

Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of [http://tcl.sourceforge.net/ Tcl/Tk].

Tkinter is

David McNab recommended the latter two as particularly "pythonic" in not insisting that readers think in Tcl.

Tkinter Extensions

Comments

MythDebunking: TkInter is ugly on Windows (http://wiki.tcl.tk/TkWidgetsLookFine)

Checking your Tkinter support

A good way to systematically check whether your Tkinter support is working is the following.

Enter an interactive Python interpreter in a shell on an X console.

Step 1 - can _tkinter be imported?

Try the following command at the Python prompt:

>>> import _tkinter # with underscore, and lowercase 't'

Step 2 - can Tkinter be imported?

Try the following command at the Python prompt:

>>> import Tkinter # no underscore, uppercase 'T'

Step 3 - does Tkinter work?

is this still valid?

Try the following command at the Python prompt:

>>> Tkinter._test() # note underscore in _test()

Unable to edit the page? See the FrontPage for instructions.