I recently have become interested in GUI programming in Python.
I have already had plenty of experience with Pygame, but find that it would be easier just to use the interface that Tkinter, Tix, etc... provide.
However, I'm having difficulty finding any decent documentation or tutorials on Tix for Python. (Unlike Pygame, which there are several guides/tutorials that I find quite nice)
Where can I find a nice tutorial? (That only assumes knowledge of Python, and hopefully no knowledge of Tk)
tix (Tk Interface Extension) module provides an additional rich set of widgets. Although the standard Tk library has many useful widgets, they are far from complete. The tkinter.
tkinter.tix. (deprecated) An older third-party Tcl/Tk package that adds several new widgets. Better alternatives for most can be found in tkinter.ttk .
Tkinter ProgrammingImport the Tkinter module. Create the GUI application main window. Add one or more of the above-mentioned widgets to the GUI application. Enter the main event loop to take action against each event triggered by the user.
Use the ttk. Progressbar(container, orient, length, mode) to create a progressbar. Use the indeterminate mode when the program cannot accurately know the relative progress to display. Use the determinate mode if you know how to measure the progress accurately.
Tix is a set of additional widgets that weren't originally included in the standard Tkinter distribution. Now that the improved ttk toolkit is part of Tkinter in newer Python versions (2.7 or 3.2), Tix is no longer necessary. More discussion can be found here.
A good tutorial on modern Tk can be found here.
Well, after some additional searching, I found the answer to my own question (finally!)
Thinking in Tkinter by Stephen Ferg
Seems pretty nice, now I actually have a decent understanding of how it works (yay!)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With