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