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