simple button class

Hans Nowak zephyr01 at alltel.net
Thu May 29 16:53:58 EDT 2003


Mark Light wrote:
> 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.

What GUI are you using?  (E.g. Tkinter, wxPython, ...)







More information about the Python-list mailing list