Some more tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-05-20 02:00:31 +00:00
parent 2b510feb17
commit 25d73e0f28
4 changed files with 42 additions and 7 deletions

View File

@@ -13,9 +13,13 @@ class JoystickTestPanel(wxPanel):
MakeJoystickTestPanel( self, true )
self.stick = wxJoystick()
self.stick.SetCapture(self)
EVT_JOYSTICK_EVENTS(self, self.OnJoystick)
try:
self.stick = wxJoystick()
self.stick.SetCapture(self)
EVT_JOYSTICK_EVENTS(self, self.OnJoystick)
self.UpdateFields()
except NotImplementedError, v:
wxMessageBox(str(v), "Exception Message")
def UpdateFields(self):