@@ -11,6 +11,11 @@ the Tk GUI toolkit. Both Tk and :mod:`Tkinter` are available on most Unix
11
11
platforms, as well as on Windows systems. (Tk itself is not part of Python; it
12
12
is maintained at ActiveState.)
13
13
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
+
14
19
.. note ::
15
20
16
21
:mod: `Tkinter ` has been renamed to :mod: `tkinter ` in Python 3. The
@@ -19,6 +24,8 @@ is maintained at ActiveState.)
19
24
20
25
.. seealso ::
21
26
27
+ Tkinter documentation:
28
+
22
29
`Python Tkinter Resources <https://wiki.python.org/moin/TkInter >`_
23
30
The Python Tkinter Topic Guide provides a great deal of information on using Tk
24
31
from Python and links to other sources of information on Tk.
@@ -32,17 +39,32 @@ is maintained at ActiveState.)
32
39
`Tkinter docs from effbot <http://effbot.org/tkinterbook/ >`_
33
40
Online reference for tkinter supported by effbot.org.
34
41
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 >`_
39
43
Book by Mark Lutz, has excellent coverage of Tkinter.
40
44
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/ >`_
42
46
Book by Mark Rozerman about building attractive and modern graphical user interfaces with Python and Tkinter.
43
47
44
48
`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.
46
68
47
69
48
70
Tkinter Modules
@@ -182,18 +204,6 @@ documentation that exists. Here are some hints:
182
204
when nothing else makes sense.
183
205
184
206
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
-
197
207
A Simple Hello World Program
198
208
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199
209
0 commit comments