Investigating mouse events

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,

  1. Select the module from the left treeview pane
  2. From menu [Help], open [Widget Inspector]

In InspectionTool,

  1. Click [Find] and click the (demonstrating) control you want to inspect.
    Then, the object tree will be expanded under [Widget Tree].
  2. To watch events, click [Events]
  3. To watch events of extra modules (e.g. wx.stc), press [Add Module], and input wx.stc.
    To watch the contents of the event, just d-click the items to popup the tooltips.
  4. 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.