Reputation: 47
hey this is a general wxpython mouseevent question.. if in my wx.EVT_LEFT_DOWN handler and i suppose any other mouse event in wx if i dont call event.Skip() the window goes buggy and my clicks dont register to other widgets. is event.Skip() a must for every mouse event in wx? thanks
Upvotes: 1
Views: 1498
Reputation: 69192
No, event.Skip() isn't required. The point of it is to allow parents to also receive the event. If you want the parents to receive the event, use event.Skip(), if you don't, then don't use it; it depends on the application. See this link.
One thing to keep in mind (for the generalization of this question) is that event propagation is different for wx.Event and a wx.CommandEvent. See this link for more.
Upvotes: 1