> You are in fact passing the result of self.execute(...), i. e. None, instead > of the method. Do > > b3 = Button(frame, text="pwd", command=lambda: self.execute('pwd')) Thank you so much, it works fine now.