I was wondering if it is possible (I'm sure it is) to get a reference to a control based on the name of the control.
Something like control = findcontrol("btnProduct"+buttonNumber)
You probably catch my drift... (and yes, I am a newby in wxPython)
Regards,
Dennis
You can use the frame instance's FindWindowByName() method, assuming you passed a unique name parameter to the widget or you might be able to use the frame instance's FindWindowByLabel() method. You can also find by id, but I don't really recommend that since it's better not to manage the ids yourself.
wxpython, find control based on its name