Re: [Tkinter-discuss] mainloop() problem

2011-08-20 Thread Michael Lange
Hi, Thus spoketh "守株待兔" <1248283...@qq.com> unto us on Sat, 20 Aug 2011 11:18:22 +0800: (...) > i don't know why i can't use mainloop() instead of Demo().mainloop > ()?? > > from Tkinter import * # get base widget set > from dialogTable import demos # button callback hand

[Tkinter-discuss] what is the meanning of triple?

2011-08-20 Thread 守株待兔
here is the code: from Tkinter import * from tkColorChooser import askcolor def setBgColor(): (triple, hexstr) = askcolor() if hexstr: print hexstr push.config(bg=hexstr) root = Tk() push = Button(root, text='Set Background Color', command=setBgColor) p