newbie: binding args in callbacks

Edward K. Ream edream at tds.net
Wed Jul 10 10:22:40 EDT 2002


Gerhard Haering wrote:

> I've no idea about Tkinter at all, but this should accomplish what you
> need:
> 
>     command=lambda: self.myCallback(val)

Thanks very much.  That did the trick.  I've been wondering how to
define lambda expressions with no args ;-)

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edream at tds.net
Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
--------------------------------------------------------------------



More information about the Python-list mailing list