I was wondering if there was a dictionary containing string versions of wxPython class (like ‘Button’ for wx.Button) to the events they call. This is what I want: {'Button': wx.EVT_BUTTON, ...}. Is there a dictionary like this anywhere in the module or on the web?
I was wondering if there was a dictionary containing string versions of wxPython class
Share
wxGlade knows about this: For every
Widgetthere is aclass EditWidgetderived fromclass ManagedBasethat has a class attributeeventsholding the names of the events sent byWidget:e.g. in widgets/bitmap_button/bitmap_button.py you’ll find
You could collect the information you want by importing all these classes (can be done automatically, I think) and reading their
eventsattribute.