[Tutor] lambda and creating GUIs

Christopher Spears cspears2002 at yahoo.com
Sat Jun 17 02:05:07 CEST 2006


I understand this:
> 
> def f(w): gtk.main_quit()
> button.connect("clicked", f)
> 
> lambda simply saves cluttering up the code with lots
> of tiny function
> derfinitions which are never referred to apart from
> in the binding 
> operation.
> 

Now my question is what is "w"?  What is being passed
to the function?




More information about the Tutor mailing list