"David Holland" <davholla2...@yahoo.co.uk> wrote
This works :-
def create_widgets(self):
self.submit_bttn=Button(self, text="Submit",
command=self.reveal)
But when I changed it to use a number I get an error message.
def create_widgets(self,x):
x= self.submit_bttn=Button(self, text="Submit",
command=self.reveal(x))
Spot the difference in the commasnd parameter?
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor