Re: [Tkinter-discuss] lambda function to simplify
Hi, Thus spoketh craf unto us on Fri, 17 Dec 2010 15:16:22 -0300: (...) > I have access to the function (greeting) from the button and the window > close button. > > It works fine, but wanted to know whether the use of lambda (lambda), > can be expressed in another way more elegant and less co
[Tkinter-discuss] lambda function to simplify
Hi. According to this code -- import Tkinter class App: def __init__(self, master): self.root = master self.b1 = Tkinter.Button(master) self.b1.pack() self.b1.bind('', lambda e,widget=self:gr