Button Widget and Key Binding Problem
Wildman
best_lay at yahoo.com
Wed Oct 19 13:42:32 EDT 2016
On Wed, 19 Oct 2016 04:39:03 +0100, MRAB wrote:
> The 'bind' method passes an 'event' object when it calls; the 'command'
> callback doesn't.
>
> You don't care about the 'event' object anyway, so you can just define a
> single method with a default argument that you ignore:
>
> def load_image(self, event=None):
> # code to load an image
That works perfectly. Thank you.
--
<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!
More information about the Python-list
mailing list