simple button class

Mark Light light at soton.ac.uk
Thu May 29 12:16:24 EDT 2003


Hi,
      I am trying to write a small gui program that has a 24 buttons that
are essentially the same. I would like to do this via a class and call an
instance for each button. I have read and re-read the class stuff and get a
bit confused - could some one start me off. Initially I just want a class
where each instance would generate a button that when pressed would print to
stdout I am button 1 I am button 2 .. etc - hopefully I will be able to pick
things up from there.

Many thanks,

Mark.








More information about the Python-list mailing list