<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi All,<br><br>Is it possible to have a widget id while it is created?<br>Something like this:<br><br>Button(root, text='...', command= lambda v=<widget id>: fn(v)).grid()<br><br>and then the function:<br><br>def fn(v):<br> v['bg']='BLUE' # or maybe nametowidget(v)['bg']='BLUE'<br><br>Thanks,<br>Sorin<br></div></div><br></body></html>