Hi Adriaan,
If you are new to wxPython, I recommend you to run wxdemo ("/Scripts/wxdemo.exe") first.
In wxdemo, you can call InspectorTool
to inspect objects and trace all events triggered by the user or system.
In wxdemo,
- Select the module from the left treeview pane
- From menu [Help], open [Widget Inspector]
In InspectionTool,
- Click [Find] and click the (demonstrating) control you want to inspect.
Then, the object tree will be expanded under [Widget Tree]. - To watch events, click [Events]
- To watch events of extra modules (e.g.
wx.stc
), press [Add Module], and inputwx.stc
.
To watch the contents of the event, just d-click the items to popup the tooltips. - In Pycrust window, you can access the target with
obj
for more inspection.
If you like, please check my previous post to see how to call it programatically.