Hi All,
Is it possible to have a widget id while it is created?
Something like this:
Button(root, text='...', command= lambda v=<widget id>: fn(v)).grid()
and then the function:
def fn(v):
v['bg']='BLUE' # or maybe nametowidget(v)['bg']='BLUE'
Thanks,
Sorin
Is it possible to have a widget id while it is created?
Something like this:
Button(root, text='...', command= lambda v=<widget id>: fn(v)).grid()
and then the function:
def fn(v):
v['bg']='BLUE' # or maybe nametowidget(v)['bg']='BLUE'
Thanks,
Sorin
-- http://mail.python.org/mailman/listinfo/python-list