faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 25 people (72%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Where can I find an example on how to use python with Tcl/Tk to write GUI windows applications?

Jun 5th, 2000 05:52
unknown unknown, richard_chamberlain


from Tkinter import *
root=Tk()
label=Label(root,width=12)
def clicker():
    label.configure(text="Hello Jilani")
button=Button(root,text="Click Me",command=clicker)
label.pack(side=TOP)
button.pack(side=TOP)
root.mainloop()

Try www.pythonware.com/library.htm

Also there is a good book by John Grayson (Python and Tkinter 
Programming) and one on the way by Frederik Lundh published by O'Reilly.