[Tkinter-discuss] Tkinter question

Sorin Schwimmer sxn02 at yahoo.com
Mon Oct 23 20:07:41 CEST 2006

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'


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20061023/3756349a/attachment.htm 

More information about the Tkinter-discuss mailing list