6

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)

foxfluff
  • 71
  • 1
  • 4

3 Answers3

3

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.

Honest Abe
  • 8,430
  • 4
  • 49
  • 64
Brandon
  • 3,684
  • 1
  • 18
  • 25
  • I'm curious by your comment *Tix is no longer necessary*. Tix seems to still have functionality that Tkinter and ttk don't. For example, Tix has the only `checklist` for Python that I know about. Is there an alternative? – Jarad Sep 08 '16 at 04:24
1

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

foxfluff
  • 71
  • 1
  • 4
  • Huh, interesting. But it's not what you asked for. – Brandon Sep 20 '12 at 12:09
  • @Brandon Sorry, I guess I asked to question wrong. I wanted a good understanding of how Tix works, which is just an extension of Tkinter (I can now just use the documentation for Tix and apply it to what I learned about Tkinter, being very similar in overall structure) – foxfluff Sep 20 '12 at 17:48
0

Re the roles of Tix and ttk. They are different things. Tix adds widgets to the standard Tkinter set. ttk adds widgets that duplicate existing widgets but with a configurable look 'n feel. So if you want to make your GUI look like the native OS apps use ttk, but you only get a limited set of widgets. If you want more powerful widgets and don't care about the look as much, then use Tix.

Alan G
  • 1