1313The :mod: `tkinter ` package ("Tk interface") is the standard Python interface to
1414the Tk GUI toolkit. Both Tk and :mod: `tkinter ` are available on most Unix
1515platforms, as well as on Windows systems. (Tk itself is not part of Python; it
16- is maintained at ActiveState.) You can check that :mod: `tkinter ` is properly
17- installed on your system by running ``python -m tkinter `` from the command line;
18- this should open a window demonstrating a simple Tk interface.
16+ is maintained at ActiveState.)
17+
18+ Running ``python -m tkinter `` from the command line should open a window
19+ demonstrating a simple Tk interface, letting you know that :mod: `tkinter ` is
20+ properly installed on your system, and also showing what version of Tcl/Tk is
21+ installed, so you can read the Tcl/Tk documentation specific to that version.
1922
2023.. seealso ::
2124
25+ Tkinter documentation:
26+
2227 `Python Tkinter Resources <https://wiki.python.org/moin/TkInter >`_
2328 The Python Tkinter Topic Guide provides a great deal of information on using Tk
2429 from Python and links to other sources of information on Tk.
@@ -32,17 +37,32 @@ this should open a window demonstrating a simple Tk interface.
3237 `Tkinter docs from effbot <http://effbot.org/tkinterbook/ >`_
3338 Online reference for tkinter supported by effbot.org.
3439
35- `Tcl/Tk manual <https://www.tcl.tk/man/tcl8.5/ >`_
36- Official manual for the latest tcl/tk version.
37-
3840 `Programming Python <http://learning-python.com/about-pp4e.html >`_
3941 Book by Mark Lutz, has excellent coverage of Tkinter.
4042
4143 `Modern Tkinter for Busy Python Developers <https://www.amazon.com/Modern-Tkinter-Python-Developers-ebook/dp/B0071QDNLO/ >`_
4244 Book by Mark Rozerman about building attractive and modern graphical user interfaces with Python and Tkinter.
4345
4446 `Python and Tkinter Programming <https://www.manning.com/books/python-and-tkinter-programming >`_
45- The book by John Grayson (ISBN 1-884777-81-3).
47+ Book by John Grayson (ISBN 1-884777-81-3).
48+
49+ Tcl/Tk documentation:
50+
51+ `Tk commands <https://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm >`_
52+ Most commands are available as :mod: `tkinter ` or :mod: `tkinter.ttk ` classes.
53+ Change '8.6' to match the version of your Tcl/Tk installation.
54+
55+ `Tcl/Tk recent man pages <https://www.tcl.tk/doc/ >`_
56+ Recent Tcl/Tk manuals on www.tcl.tk.
57+
58+ `ActiveState Tcl Home Page <http://tcl.activestate.com/ >`_
59+ The Tk/Tcl development is largely taking place at ActiveState.
60+
61+ `Tcl and the Tk Toolkit <https://www.amazon.com/exec/obidos/ASIN/020163337X >`_
62+ Book by John Ousterhout, the inventor of Tcl.
63+
64+ `Practical Programming in Tcl and Tk <http://www.beedub.com/book/ >`_
65+ Brent Welch's encyclopedic book.
4666
4767
4868Tkinter Modules
@@ -175,21 +195,6 @@ documentation that exists. Here are some hints:
175195 place to go when nothing else makes sense.
176196
177197
178- .. seealso ::
179-
180- `Tcl/Tk 8.6 man pages <https://www.tcl.tk/man/tcl8.6/ >`_
181- The Tcl/Tk manual on www.tcl.tk.
182-
183- `ActiveState Tcl Home Page <http://tcl.activestate.com/ >`_
184- The Tk/Tcl development is largely taking place at ActiveState.
185-
186- `Tcl and the Tk Toolkit <https://www.amazon.com/exec/obidos/ASIN/020163337X >`_
187- The book by John Ousterhout, the inventor of Tcl.
188-
189- `Practical Programming in Tcl and Tk <http://www.beedub.com/book/ >`_
190- Brent Welch's encyclopedic book.
191-
192-
193198A Simple Hello World Program
194199^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195200
0 commit comments