Sep-29-2016, 06:44 PM
Hello,
Here's a place where I really like lambda.
when setting a command that requires attributes, for example a tab on a notebook in tkinter
The normal 'command' doesn't allow for attributes to be passed (at least I don't believe it does).
lambda to the rescue - Here's an example
Here's a place where I really like lambda.
when setting a command that requires attributes, for example a tab on a notebook in tkinter
The normal 'command' doesn't allow for attributes to be passed (at least I don't believe it does).
lambda to the rescue - Here's an example
nb.add('cal', label='Find Calls', underline=0, createcmd=lambda w=w, name='cal': self.FindCall(nb, name))Larz60+