widget suggestion / question
Mark Erbaugh
mark at microenh.com
Sun Dec 2 09:46:08 PST 2007
I wonder if I am missing something already in wxPython. If not, consider
this a suggestion for future versions.
In Borland Delphi, the individual widgets (components) had a spare field
that could be used to store an integer for whatever purpose the
developer wanted. I would like to see something like this in wx. Here's
where I could use something like this. I designed a form with a series
of buttons. Several of the buttons could share the same event handler if
the event handler could figure out which button invoked it. I supposed
I could use reflection to figure out which button, but it would be nice
if the event handler could check this spare field in the button.
I'm using wxGlade for the design. The latest version allows you to
attach properties to the widgets which it implements by calling a SetXXX
method. To get this to work, I had to derive a button from wxButton that
had a SetXXX method.
Thanks,
Mark
More information about the wxpython-users
mailing list