On Sun, 17 Jul 2011 20:34:58 -0700 (PDT), GKalman wrote
> The following code fragment works OK. Question: why?
> #==
> from Tkinter import *
> root=Tk()
>
> lbl=Label(root,text='1').pack()
>
> def doIt():
> lbl.config(bg="yellow")
>
> btn=Button(root,text
Hi,
Thus spoketh GKalman
unto us on Sun, 17 Jul 2011 20:34:22 -0700 (PDT):
>
> The following code fragment works OK. Question: why?
> #==
> from Tkinter import *
> root=Tk()
>
> lbl=Label(root,text='1').pack()
>
> def doIt():
> lbl.config(bg="yellow")
The following code fragment works OK. Question: why?
#==
from Tkinter import *
root=Tk()
lbl=Label(root,text='1').pack()
def doIt():
lbl.config(bg="yellow")
btn=Button(root,text="do", bg="cyan",command=doIt).pack()
root.mainloop()
#=
The following code fragment works OK. Question: why?
#==
from Tkinter import *
root=Tk()
lbl=Label(root,text='1').pack()
def doIt():
lbl.config(bg="yellow")
btn=Button(root,text="do", bg="cyan",command=doIt).pack()
root.mainloop()
#=