>
>     def __init__(self):
>         # ...
>         button = Button(self,
>                         text='1',
>                         command=lambda n=1: self.display(n))
>         # ...
>
>     def display(self, number):
>         print number
>


should this really be inside the __init__ function?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to