| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <link rel="STYLESHEET" href="lib.css" type='text/css' /> |
| 5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> |
| 6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> |
| 7 | <link rel="first" href="lib.html" title='Python Library Reference' /> |
| 8 | <link rel='contents' href='contents.html' title="Contents" /> |
| 9 | <link rel='index' href='genindex.html' title='Index' /> |
| 10 | <link rel='last' href='about.html' title='About this document...' /> |
| 11 | <link rel='help' href='about.html' title='About this document...' /> |
| 12 | <link rel="next" href="module-Tix.html" /> |
| 13 | <link rel="prev" href="tkinter.html" /> |
| 14 | <link rel="parent" href="tkinter.html" /> |
| 15 | <link rel="next" href="node715.html" /> |
| 16 | <meta name='aesop' content='information' /> |
| 17 | <title>16.1 Tkinter -- Python interface to Tcl/Tk</title> |
| 18 | </head> |
| 19 | <body> |
| 20 | <DIV CLASS="navigation"> |
| 21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> |
| 22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 23 | <tr> |
| 24 | <td class='online-navigation'><a rel="prev" title="16. Graphical User Interfaces" |
| 25 | href="tkinter.html"><img src='../icons/previous.png' |
| 26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 27 | <td class='online-navigation'><a rel="parent" title="16. Graphical User Interfaces" |
| 28 | href="tkinter.html"><img src='../icons/up.png' |
| 29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 30 | <td class='online-navigation'><a rel="next" title="16.1.1 Tkinter Modules" |
| 31 | href="node715.html"><img src='../icons/next.png' |
| 32 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 33 | <td align="center" width="100%">Python Library Reference</td> |
| 34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 35 | href="contents.html"><img src='../icons/contents.png' |
| 36 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 38 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 39 | <td class='online-navigation'><a rel="index" title="Index" |
| 40 | href="genindex.html"><img src='../icons/index.png' |
| 41 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 42 | </tr></table> |
| 43 | <div class='online-navigation'> |
| 44 | <b class="navlabel">Previous:</b> |
| 45 | <a class="sectref" rel="prev" href="tkinter.html">16. Graphical User Interfaces</A> |
| 46 | <b class="navlabel">Up:</b> |
| 47 | <a class="sectref" rel="parent" href="tkinter.html">16. Graphical User Interfaces</A> |
| 48 | <b class="navlabel">Next:</b> |
| 49 | <a class="sectref" rel="next" href="node715.html">16.1.1 Tkinter Modules</A> |
| 50 | </div> |
| 51 | <hr /></div> |
| 52 | </DIV> |
| 53 | <!--End of Navigation Panel--> |
| 54 | |
| 55 | <H1><A NAME="SECTION0018100000000000000000"> |
| 56 | 16.1 <tt class="module">Tkinter</tt> -- |
| 57 | Python interface to Tcl/Tk</A> |
| 58 | </H1> |
| 59 | |
| 60 | <P> |
| 61 | <A NAME="module-Tkinter"></A> |
| 62 | |
| 63 | <P> |
| 64 | The <tt class="module">Tkinter</tt> module (``Tk interface'') is the standard Python |
| 65 | interface to the Tk GUI toolkit. Both Tk and <tt class="module">Tkinter</tt> are |
| 66 | available on most <span class="Unix">Unix</span> platforms, as well as on Windows and |
| 67 | Macintosh systems. (Tk itself is not part of Python; it is maintained |
| 68 | at ActiveState.) |
| 69 | |
| 70 | <P> |
| 71 | <div class="seealso"> |
| 72 | <p class="heading">See Also:</p> |
| 73 | |
| 74 | <dl compact="compact" class="seetitle"> |
| 75 | <dt><em class="citetitle"><a href="http://www.python.org/topics/tkinter/" |
| 76 | >Python Tkinter Resources</a></em></dt> |
| 77 | <dd>The Python Tkinter Topic Guide provides a great |
| 78 | deal of information on using Tk from Python and links to |
| 79 | other sources of information on Tk.</dd> |
| 80 | </dl> |
| 81 | |
| 82 | <P> |
| 83 | <dl compact="compact" class="seetitle"> |
| 84 | <dt><em class="citetitle"><a href="http://www.pythonware.com/library/an-introduction-to-tkinter.htm" |
| 85 | >An Introduction to Tkinter</a></em></dt> |
| 86 | <dd>Fredrik Lundh's on-line reference material.</dd> |
| 87 | </dl> |
| 88 | |
| 89 | <P> |
| 90 | <dl compact="compact" class="seetitle"> |
| 91 | <dt><em class="citetitle"><a href="http://www.nmt.edu/tcc/help/pubs/lang.html" |
| 92 | >Tkinter reference: a GUI for Python</a></em></dt> |
| 93 | <dd>On-line reference material.</dd> |
| 94 | </dl> |
| 95 | |
| 96 | <P> |
| 97 | <dl compact="compact" class="seetitle"> |
| 98 | <dt><em class="citetitle"><a href="http://jtkinter.sourceforge.net" |
| 99 | >Tkinter for JPython</a></em></dt> |
| 100 | <dd>The Jython interface to Tkinter.</dd> |
| 101 | </dl> |
| 102 | |
| 103 | <P> |
| 104 | <dl compact="compact" class="seetitle"> |
| 105 | <dt><em class="citetitle"><a href="http://www.amazon.com/exec/obidos/ASIN/1884777813" |
| 106 | >Python and Tkinter Programming</a></em></dt> |
| 107 | <dd>The book by John Grayson (ISBN 1-884777-81-3).</dd> |
| 108 | </dl> |
| 109 | </div> |
| 110 | |
| 111 | <P> |
| 112 | |
| 113 | <p><br /></p><hr class='online-navigation' /> |
| 114 | <div class='online-navigation'> |
| 115 | <!--Table of Child-Links--> |
| 116 | <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a> |
| 117 | |
| 118 | <UL CLASS="ChildLinks"> |
| 119 | <LI><A href="node715.html">16.1.1 Tkinter Modules</a> |
| 120 | <LI><A href="node716.html">16.1.2 Tkinter Life Preserver</a> |
| 121 | <UL> |
| 122 | <LI><A href="node717.html">16.1.2.1 How To Use This Section</a> |
| 123 | <LI><A href="node718.html">16.1.2.2 A Simple Hello World Program</a> |
| 124 | </ul> |
| 125 | <LI><A href="node719.html">16.1.3 A (Very) Quick Look at Tcl/Tk</a> |
| 126 | <LI><A href="tkinter-basic-mapping.html">16.1.4 Mapping Basic Tk into Tkinter</a> |
| 127 | <LI><A href="node721.html">16.1.5 How Tk and Tkinter are Related</a> |
| 128 | <LI><A href="node722.html">16.1.6 Handy Reference</a> |
| 129 | <UL> |
| 130 | <LI><A href="tkinter-setting-options.html">16.1.6.1 Setting Options</a> |
| 131 | <LI><A href="node724.html">16.1.6.2 The Packer</a> |
| 132 | <LI><A href="node725.html">16.1.6.3 Packer Options</a> |
| 133 | <LI><A href="node726.html">16.1.6.4 Coupling Widget Variables</a> |
| 134 | <LI><A href="node727.html">16.1.6.5 The Window Manager</a> |
| 135 | <LI><A href="node728.html">16.1.6.6 Tk Option Data Types</a> |
| 136 | <LI><A href="node729.html">16.1.6.7 Bindings and Events</a> |
| 137 | <LI><A href="node730.html">16.1.6.8 The index Parameter</a> |
| 138 | <LI><A href="node731.html">16.1.6.9 Images</a> |
| 139 | </ul></ul> |
| 140 | <!--End of Table of Child-Links--> |
| 141 | </div> |
| 142 | |
| 143 | <DIV CLASS="navigation"> |
| 144 | <div class='online-navigation'> |
| 145 | <p></p><hr /> |
| 146 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 147 | <tr> |
| 148 | <td class='online-navigation'><a rel="prev" title="16. Graphical User Interfaces" |
| 149 | href="tkinter.html"><img src='../icons/previous.png' |
| 150 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 151 | <td class='online-navigation'><a rel="parent" title="16. Graphical User Interfaces" |
| 152 | href="tkinter.html"><img src='../icons/up.png' |
| 153 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 154 | <td class='online-navigation'><a rel="next" title="16.1.1 Tkinter Modules" |
| 155 | href="node715.html"><img src='../icons/next.png' |
| 156 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 157 | <td align="center" width="100%">Python Library Reference</td> |
| 158 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 159 | href="contents.html"><img src='../icons/contents.png' |
| 160 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 161 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 162 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 163 | <td class='online-navigation'><a rel="index" title="Index" |
| 164 | href="genindex.html"><img src='../icons/index.png' |
| 165 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 166 | </tr></table> |
| 167 | <div class='online-navigation'> |
| 168 | <b class="navlabel">Previous:</b> |
| 169 | <a class="sectref" rel="prev" href="tkinter.html">16. Graphical User Interfaces</A> |
| 170 | <b class="navlabel">Up:</b> |
| 171 | <a class="sectref" rel="parent" href="tkinter.html">16. Graphical User Interfaces</A> |
| 172 | <b class="navlabel">Next:</b> |
| 173 | <a class="sectref" rel="next" href="node715.html">16.1.1 Tkinter Modules</A> |
| 174 | </div> |
| 175 | </div> |
| 176 | <hr /> |
| 177 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> |
| 178 | </DIV> |
| 179 | <!--End of Navigation Panel--> |
| 180 | <ADDRESS> |
| 181 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. |
| 182 | </ADDRESS> |
| 183 | </BODY> |
| 184 | </HTML> |