
_tkinter - note the underscore - extension module. _tkinter (C) These commands and their arguments will be passed to a C function in the This Pythonįunction will parse the commands and the arguments and convert them into aįorm that makes them look as if they had come from a Tk script instead ofĪ Python script. The tkinter package, which is written in Python. tkinter (Python Package) This call (say, for example, creating a button widget), is implemented in To make a widget in Tk, the command is always of the form:įrom the top down: Your App Here (Python) A Python application makes a tkinter call. That help configure it, and the actions that make it do useful things. A Tk widget is just its class, the options Like all Tcl programs, Tk scripts are just lists

(See section Mapping Basic Tk into Tkinter for the
#Tkinter python 3 install how to#
To know how to read short passages of Tk and how to identify the various parts To make use of this reference material, there will be times when you will need

The book is not exhaustive, and for many details it defers to the Ousterhout (ISBN 7-X) which is a good introduction to Tcl and Tk for

mondialog Base class for the dialogs defined in the other modules listed here.

lorchooser Dialog to let the user choose a color. Other modules that provide Tk support include: tkinter.scrolledtext Text widget with a vertical scroll bar built in. Subsystem initialized) by calling its loadtk() method. An objectĬreated by the Tcl() object can have a Toplevel window created (and the Tk Where one cannot (such as Unix/Linux systems without an X server). This is most often useful when driving the Tcl interpreter in anĮnvironment where one doesn’t want to create extraneous toplevel windows, or That created by the Tk class, except that it does not initialize the Tk The Tcl() function is a factory function which creates an object much like Tcl ( screenName=None, baseName=None, className='Tk', useTk=0 ) Widget of Tk which usually is the main window of an application. The Tk class is instantiated without arguments. Tk ( screenName=None, baseName=None, className='Tk', useTk=1 )
