Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tix Tutorials in Python

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)

like image 819
foxfluff Avatar asked Sep 19 '12 17:09

foxfluff


People also ask

What is Tix in Python?

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.

Is tkinter deprecated?

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 .

How do I run a tkinter in Python?

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.

How do I use the progress bar in tkinter?

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.


2 Answers

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.

like image 90
Brandon Avatar answered Nov 15 '22 10:11

Brandon


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!)

like image 33
foxfluff Avatar answered Nov 15 '22 10:11

foxfluff