t turns out that the problem was an outdated version of init.tcl that was
(still?) present after installing ActivePython 2.7.2.5. After replacing that
file with the one from the 8.5.9 source
it is now working properly.
Lynn
On Jul 12, 2011, at 12:34 PM, Lynn Oliver wrote:
> Using Python versio
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()
#=