mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
handle an OSError exception
This commit is contained in:
@@ -151,11 +151,13 @@ class ActiveXCtrl(wx.msw.PyAxBaseWindow):
|
|||||||
# accelerators can be dealt with the way that the AXControl
|
# accelerators can be dealt with the way that the AXControl
|
||||||
# wants them to be done. MSWTranslateMessage is called before
|
# wants them to be done. MSWTranslateMessage is called before
|
||||||
# wxWidgets handles and eats the navigation keys itself.
|
# wxWidgets handles and eats the navigation keys itself.
|
||||||
res = self.ipao.TranslateAccelerator(msg)
|
try:
|
||||||
if res == hr.S_OK:
|
res = self.ipao.TranslateAccelerator(msg)
|
||||||
return True
|
if res == hr.S_OK:
|
||||||
else:
|
return True
|
||||||
return super(ActiveXCtrl, self).MSWTranslateMessage(msg)
|
except OSError:
|
||||||
|
pass
|
||||||
|
return super(ActiveXCtrl, self).MSWTranslateMessage(msg)
|
||||||
|
|
||||||
|
|
||||||
# TBD: Are the focus handlers needed?
|
# TBD: Are the focus handlers needed?
|
||||||
|
|||||||
Reference in New Issue
Block a user