@@ -11,6 +11,11 @@ the Tk GUI toolkit. Both Tk and :mod:`Tkinter` are available on most Unix
1111platforms, as well as on Windows systems. (Tk itself is not part of Python; it
1212is maintained at ActiveState.)
1313
14+ Running ``python -m Tkinter `` from the command line should open a window
15+ demonstrating a simple Tk interface, letting you know that :mod: `Tkinter ` is
16+ properly installed on your system, and also showing what version of Tcl/Tk is
17+ installed, so you can read the Tcl/Tk documentation specific to that version.
18+
1419.. note ::
1520
1621 :mod: `Tkinter ` has been renamed to :mod: `tkinter ` in Python 3. The
@@ -19,6 +24,8 @@ is maintained at ActiveState.)
1924
2025.. seealso ::
2126
27+ Tkinter documentation:
28+
2229 `Python Tkinter Resources <https://wiki.python.org/moin/TkInter >`_
2330 The Python Tkinter Topic Guide provides a great deal of information on using Tk
2431 from Python and links to other sources of information on Tk.
@@ -32,17 +39,32 @@ is maintained at ActiveState.)
3239 `Tkinter docs from effbot <http://effbot.org/tkinterbook/ >`_
3340 Online reference for tkinter supported by effbot.org.
3441
35- `Tcl/Tk manual <https://www.tcl.tk/man/tcl8.5/ >`_
36- Official manual for the latest tcl/tk version.
37-
38- `Programming Python <http://learning-python.com/books/about-pp4e.html >`_
42+ `Programming Python <http://learning-python.com/about-pp4e.html >`_
3943 Book by Mark Lutz, has excellent coverage of Tkinter.
4044
41- `Modern Tkinter for Busy Python Developers <http ://www.amazon.com/Modern-Tkinter-Python-Developers-ebook/dp/B0071QDNLO/ >`_
45+ `Modern Tkinter for Busy Python Developers <https ://www.amazon.com/Modern-Tkinter-Python-Developers-ebook/dp/B0071QDNLO/ >`_
4246 Book by Mark Rozerman about building attractive and modern graphical user interfaces with Python and Tkinter.
4347
4448 `Python and Tkinter Programming <https://www.manning.com/books/python-and-tkinter-programming >`_
45- The book by John Grayson (ISBN 1-884777-81-3).
49+ Book by John Grayson (ISBN 1-884777-81-3).
50+
51+ Tcl/Tk documentation:
52+
53+ `Tk commands <https://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm >`_
54+ Most commands are available as :mod: `Tkinter ` or :mod: `Tkinter.ttk ` classes.
55+ Change '8.6' to match the version of your Tcl/Tk installation.
56+
57+ `Tcl/Tk recent man pages <https://www.tcl.tk/doc/ >`_
58+ Recent Tcl/Tk manuals on www.tcl.tk.
59+
60+ `ActiveState Tcl Home Page <http://tcl.activestate.com/ >`_
61+ The Tk/Tcl development is largely taking place at ActiveState.
62+
63+ `Tcl and the Tk Toolkit <https://www.amazon.com/exec/obidos/ASIN/020163337X >`_
64+ Book by John Ousterhout, the inventor of Tcl.
65+
66+ `Practical Programming in Tcl and Tk <http://www.beedub.com/book/ >`_
67+ Brent Welch's encyclopedic book.
4668
4769
4870Tkinter Modules
@@ -182,18 +204,6 @@ documentation that exists. Here are some hints:
182204 when nothing else makes sense.
183205
184206
185- .. seealso ::
186-
187- `ActiveState Tcl Home Page <http://tcl.activestate.com/ >`_
188- The Tk/Tcl development is largely taking place at ActiveState.
189-
190- `Tcl and the Tk Toolkit <http://www.amazon.com/exec/obidos/ASIN/020163337X >`_
191- The book by John Ousterhout, the inventor of Tcl.
192-
193- `Practical Programming in Tcl and Tk <http://www.beedub.com/book/ >`_
194- Brent Welch's encyclopedic book.
195-
196-
197207A Simple Hello World Program
198208^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199209
0 commit comments