from events import *
from streams import *
-class wxToolTipPtr :
+class wxToolTipPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxToolTip instance at %s>" % (self.this,)
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def MoveXY(self, *_args, **_kwargs):
val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
+class wxMutexGuiLockerPtr :
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,misc2c=misc2c):
+ if self.thisown == 1 :
+ misc2c.delete_wxMutexGuiLocker(self)
+ def __repr__(self):
+ return "<C wxMutexGuiLocker instance at %s>" % (self.this,)
+class wxMutexGuiLocker(wxMutexGuiLockerPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(misc2c.new_wxMutexGuiLocker,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxTipProviderPtr :
def __init__(self,this):
self.this = this
-class wxDragImagePtr :
+class wxDragImagePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,misc2c=misc2c):
if self.thisown == 1 :
misc2c.delete_wxDragImage(self)
+ def SetBackingBitmap(self, *_args, **_kwargs):
+ val = apply(misc2c.wxDragImage_SetBackingBitmap,(self,) + _args, _kwargs)
+ return val
def BeginDrag(self, *_args, **_kwargs):
val = apply(misc2c.wxDragImage_BeginDrag,(self,) + _args, _kwargs)
return val
+def wxDragIcon(*_args,**_kwargs):
+ val = wxDragImagePtr(apply(misc2c.new_wxDragIcon,_args,_kwargs))
+ val.thisown = 1
+ return val
+
+def wxDragString(*_args,**_kwargs):
+ val = wxDragImagePtr(apply(misc2c.new_wxDragString,_args,_kwargs))
+ val.thisown = 1
+ return val
+
+def wxDragTreeItem(*_args,**_kwargs):
+ val = wxDragImagePtr(apply(misc2c.new_wxDragTreeItem,_args,_kwargs))
+ val.thisown = 1
+ return val
+
+def wxDragListItem(*_args,**_kwargs):
+ val = wxDragImagePtr(apply(misc2c.new_wxDragListItem,_args,_kwargs))
+ val.thisown = 1
+ return val
+
-class wxPyTimerPtr :
+class wxPyTimerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetFrame(self, *_args, **_kwargs):
val = apply(misc2c.wxLogWindow_GetFrame,(self,) + _args, _kwargs)
- if val: val = wxFramePtr(val)
return val
def GetOldLog(self, *_args, **_kwargs):
val = apply(misc2c.wxLogWindow_GetOldLog,(self,) + _args, _kwargs)
-class wxJoystickPtr :
+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
+class wxWavePtr(wxObjectPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,misc2c=misc2c):
+ if self.thisown == 1 :
+ misc2c.delete_wxWave(self)
+ def IsOk(self, *_args, **_kwargs):
+ val = apply(misc2c.wxWave_IsOk,(self,) + _args, _kwargs)
+ return val
+ def Play(self, *_args, **_kwargs):
+ val = apply(misc2c.wxWave_Play,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxWave instance at %s>" % (self.this,)
+class wxWave(wxWavePtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(misc2c.new_wxWave,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
#-------------- FUNCTION WRAPPERS ------------------
wxGetTextFromUser = misc2c.wxGetTextFromUser
+wxGetPasswordFromUser = misc2c.wxGetPasswordFromUser
+
wxGetSingleChoice = misc2c.wxGetSingleChoice
wxGetSingleChoiceIndex = misc2c.wxGetSingleChoiceIndex
wxDisplayDepth = misc2c.wxDisplayDepth
+wxGetDisplayDepth = misc2c.wxGetDisplayDepth
+
+wxDisplaySize = misc2c.wxDisplaySize
+
+def wxGetDisplaySize(*_args, **_kwargs):
+ val = apply(misc2c.wxGetDisplaySize,_args,_kwargs)
+ if val: val = wxSizePtr(val); val.thisown = 1
+ return val
+
+wxDisplaySizeMM = misc2c.wxDisplaySizeMM
+
+def wxGetDisplaySizeMM(*_args, **_kwargs):
+ val = apply(misc2c.wxGetDisplaySizeMM,_args,_kwargs)
+ if val: val = wxSizePtr(val); val.thisown = 1
+ return val
+
+wxClientDisplayRect = misc2c.wxClientDisplayRect
+
+def wxGetClientDisplayRect(*_args, **_kwargs):
+ val = apply(misc2c.wxGetClientDisplayRect,_args,_kwargs)
+ if val: val = wxRectPtr(val); val.thisown = 1
+ return val
+
wxSetCursor = misc2c.wxSetCursor
def wxFindWindowByLabel(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
def wxFindWindowByName(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowByName,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
wxBeginBusyCursor = misc2c.wxBeginBusyCursor
def wxGetActiveWindow(*_args, **_kwargs):
val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
+def wxGenericFindWindowAtPoint(*_args, **_kwargs):
+ val = apply(misc2c.wxGenericFindWindowAtPoint,_args,_kwargs)
+ return val
+
+def wxFindWindowAtPoint(*_args, **_kwargs):
+ val = apply(misc2c.wxFindWindowAtPoint,_args,_kwargs)
+ return val
+
+wxCheckForInterrupt = misc2c.wxCheckForInterrupt
+
+wxFlushEvents = misc2c.wxFlushEvents
+
wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
wxResourceClear = misc2c.wxResourceClear
def wxResourceCreateMenuBar(*_args, **_kwargs):
val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
- if val: val = wxMenuBarPtr(val)
return val
wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
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
+wxSafeYield = misc2c.wxSafeYield
+
wxPostEvent = misc2c.wxPostEvent
wxWakeUpIdle = misc2c.wxWakeUpIdle
-wxSafeYield = misc2c.wxSafeYield
+wxWakeUpMainThread = misc2c.wxWakeUpMainThread
+
+wxMutexGuiEnter = misc2c.wxMutexGuiEnter
+
+wxMutexGuiLeave = misc2c.wxMutexGuiLeave
+
+wxThread_IsMain = misc2c.wxThread_IsMain
wxShowTip = misc2c.wxShowTip
if val: val = wxTipProviderPtr(val); val.thisown = 1
return val
-def wxDragIcon(*_args, **_kwargs):
- val = apply(misc2c.wxDragIcon,_args,_kwargs)
- if val: val = wxDragImagePtr(val); val.thisown = 1
- return val
-
-def wxDragString(*_args, **_kwargs):
- val = apply(misc2c.wxDragString,_args,_kwargs)
- if val: val = wxDragImagePtr(val); val.thisown = 1
- return val
-
-def wxDragTreeItem(*_args, **_kwargs):
- val = apply(misc2c.wxDragTreeItem,_args,_kwargs)
- if val: val = wxDragImagePtr(val); val.thisown = 1
- return val
-
-def wxDragListItem(*_args, **_kwargs):
- val = apply(misc2c.wxDragListItem,_args,_kwargs)
- if val: val = wxDragImagePtr(val); val.thisown = 1
- return val
-
wxSysErrorCode = misc2c.wxSysErrorCode
wxSysErrorMsg = misc2c.wxSysErrorMsg
wxExecute = misc2c.wxExecute
+def wxWaveData(*_args, **_kwargs):
+ val = apply(misc2c.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
wxLOG_Trace = misc2c.wxLOG_Trace
wxLOG_Progress = misc2c.wxLOG_Progress
wxLOG_User = misc2c.wxLOG_User
+wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS