开发者

wxPython binding of EVT_SET_FOCUS to combobox causing unwanted behavior

When I bind the EVT_SET_FOCUS to my combo box my function does what it should. However Then when I try to clck on the combobox (a drop down variety) to change the value the开发者_运维问答 drop down no longer occurs.

Can anyone tell me what I need to do to retain the original functionality while still binding my new functionality?


Call Skip() at the end of your function so the event continues propagating:

def OnFocus(self, evt):
    # do some event handling stuff
    evt.Skip()

If that's not the problem, post your code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜