TKinter, buttonwidget response problem(1) and all btns the same size(2)!

skanemupp at yahoo.se skanemupp at yahoo.se
Sat Apr 5 10:47:06 EDT 2008


>
>     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?



More information about the Python-list mailing list