X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10e07c70d8161058e55d722686edbafb4688d243..abb69c6c82d61cf18f14270650a68896a3d8ed47:/wxPython/src/msw/misc2.py?ds=sidebyside diff --git a/wxPython/src/msw/misc2.py b/wxPython/src/msw/misc2.py index 76e68dc44e..560ac688d2 100644 --- a/wxPython/src/msw/misc2.py +++ b/wxPython/src/msw/misc2.py @@ -492,6 +492,9 @@ class wxJoystickPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 + def __del__(self,misc2c=misc2c): + if self.thisown == 1 : + misc2c.delete_wxJoystick(self) def GetPosition(self, *_args, **_kwargs): val = apply(misc2c.wxJoystick_GetPosition,(self,) + _args, _kwargs) if val: val = wxPointPtr(val) ; val.thisown = 1 @@ -723,6 +726,8 @@ def wxFindWindowAtPoint(*_args, **_kwargs): wxCheckForInterrupt = misc2c.wxCheckForInterrupt +wxFlushEvents = misc2c.wxFlushEvents + wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier wxResourceClear = misc2c.wxResourceClear @@ -761,10 +766,6 @@ def wxSystemSettings_GetSystemFont(*_args, **_kwargs): wxSystemSettings_GetSystemMetric = misc2c.wxSystemSettings_GetSystemMetric -wxToolTip_Enable = misc2c.wxToolTip_Enable - -wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay - wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime @@ -839,6 +840,10 @@ def wxWaveData(*_args, **_kwargs): if val: val = wxWavePtr(val); val.thisown = 1 return val +wxToolTip_Enable = misc2c.wxToolTip_Enable + +wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay + wxLog_IsEnabled = misc2c.wxLog_IsEnabled wxLog_EnableLogging = misc2c.wxLog_EnableLogging