tags:

views:

363

answers:

8

I'm beginner for the GUI programing using Tkinter, so who can tell me some useful sample codes which contains some useful codes.

+1  A: 

This is what I used: Pythonware -- An introduction to TKinter.

I quickly switched to PyQT, though :)

bedwyr
A: 

Here are several video series on building python GUIs that got me started

Jason
@Jason: Those seem to have nothing to do with Tkinter. Did you post the wrong link, or are you trying to steer people away from Tkinter?
Bryan Oakley
@Bryan Oakley sorry about that I did post the wrong link
Jason
A: 

If you learn best from video, Charlie, I recommend http://showmedo.com/videotutorials/video?name=pythonShawnTkinter1&fromSeriesID=58 ; if from books, http://www.manning.com/grayson/ . For a free online tutorial, I second bedwyr's advice -- and I especially second his (implicit;-) advice to use PyQt instead. (A web search for pyqt tutorial shows many pointers).

Alex Martelli
Could you expand on why you prefer PyQt to Tkinter?
mataap
A: 

You have the source for idle. That shows useful tkinter code.

S.Lott
+2  A: 

I found Thinking in Tkinter very helpful for getting my head around the concepts of GUI programming (notably, packing widgets inside other widgets, and binding callbacks to events).

John Fouhy
+6  A: 

I learned using this pdf.

Edit: Per MatrixFrog's comment, use this link for the latest version.

bpowah
Same one I was going to recommend, but since it's from "New Mexico Tech Computer Center" I would assume this link is a newer version: http://infohost.nmt.edu/tcc/help/lang/python/tkinter.pdf
MatrixFrog
+1  A: 

Mark Lutz's tome Programming Python deals at length with Tkinter. The Introduction to Tkinter ( effbot.org) and Tkinter reference: a GUI for Python (John Shipman, New Mexico Tech) are good summaries of the major features. I have read that the Tk/Tcl manual is a good reference but that might be for later.

Strider1066
A: 

I just came across http://www.shido.info/py/python6_e.html which looks very handy

David Sykes