]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/misc2.py
compilation fix
[wxWidgets.git] / wxPython / src / gtk / misc2.py
index 60be26b56729eacb4d326a69cf2afce1a89fcfa0..674695385cf6adad73b2f5e062de115eeb6788dc 100644 (file)
@@ -10,7 +10,9 @@ from gdi import *
 from clip_dnd import *
 
 from events import *
-class wxToolTipPtr :
+
+from streams import *
+class wxToolTipPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
@@ -22,7 +24,6 @@ class wxToolTipPtr :
         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,)
@@ -63,7 +64,6 @@ class wxCaretPtr :
         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)
@@ -143,6 +143,40 @@ class wxBusyCursor(wxBusyCursorPtr):
 
 
 
+class wxWindowDisablerPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self,misc2c=misc2c):
+        if self.thisown == 1 :
+            misc2c.delete_wxWindowDisabler(self)
+    def __repr__(self):
+        return "<C wxWindowDisabler instance at %s>" % (self.this,)
+class wxWindowDisabler(wxWindowDisablerPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxWindowDisabler,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
+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
@@ -179,13 +213,16 @@ class wxPyTipProvider(wxPyTipProviderPtr):
 
 
 
-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
@@ -221,7 +258,7 @@ class wxDragImage(wxDragImagePtr):
 
 
 
-class wxPyTimerPtr :
+class wxPyTimerPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
@@ -333,7 +370,6 @@ class wxLogWindowPtr(wxLogPtr):
         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)
@@ -372,6 +408,253 @@ class wxLogNull(wxLogNullPtr):
 
 
 
+class wxProcessEventPtr(wxEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetPid(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcessEvent_GetPid,(self,) + _args, _kwargs)
+        return val
+    def GetExitCode(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcessEvent_GetExitCode,(self,) + _args, _kwargs)
+        return val
+    def __setattr__(self,name,value):
+        if name == "m_pid" :
+            misc2c.wxProcessEvent_m_pid_set(self,value)
+            return
+        if name == "m_exitcode" :
+            misc2c.wxProcessEvent_m_exitcode_set(self,value)
+            return
+        self.__dict__[name] = value
+    def __getattr__(self,name):
+        if name == "m_pid" : 
+            return misc2c.wxProcessEvent_m_pid_get(self)
+        if name == "m_exitcode" : 
+            return misc2c.wxProcessEvent_m_exitcode_get(self)
+        raise AttributeError,name
+    def __repr__(self):
+        return "<C wxProcessEvent instance at %s>" % (self.this,)
+class wxProcessEvent(wxProcessEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxProcessEvent,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxProcessPtr(wxEvtHandlerPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def Destroy(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_Destroy,(self,) + _args, _kwargs)
+        return val
+    def _setSelf(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess__setSelf,(self,) + _args, _kwargs)
+        return val
+    def base_OnTerminate(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_base_OnTerminate,(self,) + _args, _kwargs)
+        return val
+    def Redirect(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_Redirect,(self,) + _args, _kwargs)
+        return val
+    def IsRedirected(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_IsRedirected,(self,) + _args, _kwargs)
+        return val
+    def Detach(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_Detach,(self,) + _args, _kwargs)
+        return val
+    def GetInputStream(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_GetInputStream,(self,) + _args, _kwargs)
+        return val
+    def GetErrorStream(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_GetErrorStream,(self,) + _args, _kwargs)
+        return val
+    def GetOutputStream(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_GetOutputStream,(self,) + _args, _kwargs)
+        if val: val = wxOutputStreamPtr(val) 
+        return val
+    def CloseOutput(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess_CloseOutput,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxProcess instance at %s>" % (self.this,)
+class wxProcess(wxProcessPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxProcess,_args,_kwargs)
+        self.thisown = 1
+        self._setSelf(self, wxProcess)
+
+
+
+
+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
+        return val
+    def GetZPosition(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetZPosition,(self,) + _args, _kwargs)
+        return val
+    def GetButtonState(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetButtonState,(self,) + _args, _kwargs)
+        return val
+    def GetPOVPosition(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetPOVPosition,(self,) + _args, _kwargs)
+        return val
+    def GetPOVCTSPosition(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetPOVCTSPosition,(self,) + _args, _kwargs)
+        return val
+    def GetRudderPosition(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetRudderPosition,(self,) + _args, _kwargs)
+        return val
+    def GetUPosition(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetUPosition,(self,) + _args, _kwargs)
+        return val
+    def GetVPosition(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetVPosition,(self,) + _args, _kwargs)
+        return val
+    def GetMovementThreshold(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetMovementThreshold,(self,) + _args, _kwargs)
+        return val
+    def SetMovementThreshold(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_SetMovementThreshold,(self,) + _args, _kwargs)
+        return val
+    def IsOk(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_IsOk,(self,) + _args, _kwargs)
+        return val
+    def GetNumberJoysticks(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetNumberJoysticks,(self,) + _args, _kwargs)
+        return val
+    def GetManufacturerId(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetManufacturerId,(self,) + _args, _kwargs)
+        return val
+    def GetProductId(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetProductId,(self,) + _args, _kwargs)
+        return val
+    def GetProductName(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetProductName,(self,) + _args, _kwargs)
+        return val
+    def GetXMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetXMin,(self,) + _args, _kwargs)
+        return val
+    def GetYMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetYMin,(self,) + _args, _kwargs)
+        return val
+    def GetZMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetZMin,(self,) + _args, _kwargs)
+        return val
+    def GetXMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetXMax,(self,) + _args, _kwargs)
+        return val
+    def GetYMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetYMax,(self,) + _args, _kwargs)
+        return val
+    def GetZMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetZMax,(self,) + _args, _kwargs)
+        return val
+    def GetNumberButtons(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetNumberButtons,(self,) + _args, _kwargs)
+        return val
+    def GetNumberAxes(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetNumberAxes,(self,) + _args, _kwargs)
+        return val
+    def GetMaxButtons(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetMaxButtons,(self,) + _args, _kwargs)
+        return val
+    def GetMaxAxes(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetMaxAxes,(self,) + _args, _kwargs)
+        return val
+    def GetPollingMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetPollingMin,(self,) + _args, _kwargs)
+        return val
+    def GetPollingMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetPollingMax,(self,) + _args, _kwargs)
+        return val
+    def GetRudderMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetRudderMin,(self,) + _args, _kwargs)
+        return val
+    def GetRudderMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetRudderMax,(self,) + _args, _kwargs)
+        return val
+    def GetUMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetUMin,(self,) + _args, _kwargs)
+        return val
+    def GetUMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetUMax,(self,) + _args, _kwargs)
+        return val
+    def GetVMin(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetVMin,(self,) + _args, _kwargs)
+        return val
+    def GetVMax(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_GetVMax,(self,) + _args, _kwargs)
+        return val
+    def HasRudder(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasRudder,(self,) + _args, _kwargs)
+        return val
+    def HasZ(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasZ,(self,) + _args, _kwargs)
+        return val
+    def HasU(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasU,(self,) + _args, _kwargs)
+        return val
+    def HasV(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasV,(self,) + _args, _kwargs)
+        return val
+    def HasPOV(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasPOV,(self,) + _args, _kwargs)
+        return val
+    def HasPOV4Dir(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasPOV4Dir,(self,) + _args, _kwargs)
+        return val
+    def HasPOVCTS(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_HasPOVCTS,(self,) + _args, _kwargs)
+        return val
+    def SetCapture(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_SetCapture,(self,) + _args, _kwargs)
+        return val
+    def ReleaseCapture(self, *_args, **_kwargs):
+        val = apply(misc2c.wxJoystick_ReleaseCapture,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxJoystick instance at %s>" % (self.this,)
+class wxJoystick(wxJoystickPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxJoystick,_args,_kwargs)
+        self.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 ------------------
@@ -380,6 +663,8 @@ wxFileSelector = misc2c.wxFileSelector
 
 wxGetTextFromUser = misc2c.wxGetTextFromUser
 
+wxGetPasswordFromUser = misc2c.wxGetPasswordFromUser
+
 wxGetSingleChoice = misc2c.wxGetSingleChoice
 
 wxGetSingleChoiceIndex = misc2c.wxGetSingleChoiceIndex
@@ -392,23 +677,51 @@ wxColourDisplay = misc2c.wxColourDisplay
 
 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
 
 wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
@@ -427,7 +740,6 @@ def wxResourceCreateIcon(*_args, **_kwargs):
 
 def wxResourceCreateMenuBar(*_args, **_kwargs):
     val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
-    if val: val = wxMenuBarPtr(val)
     return val
 
 wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
@@ -450,18 +762,22 @@ 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
 
+wxSafeYield = misc2c.wxSafeYield
+
 wxPostEvent = misc2c.wxPostEvent
 
 wxWakeUpIdle = misc2c.wxWakeUpIdle
 
+wxMutexGuiEnter = misc2c.wxMutexGuiEnter
+
+wxMutexGuiLeave = misc2c.wxMutexGuiLeave
+
+wxThread_IsMain = misc2c.wxThread_IsMain
+
 wxShowTip = misc2c.wxShowTip
 
 def wxCreateFileTipProvider(*_args, **_kwargs):
@@ -511,6 +827,17 @@ wxLogStatusFrame = misc2c.wxLogStatusFrame
 
 wxLogSysError = misc2c.wxLogSysError
 
+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
@@ -645,3 +972,4 @@ wxLOG_Debug = misc2c.wxLOG_Debug
 wxLOG_Trace = misc2c.wxLOG_Trace
 wxLOG_Progress = misc2c.wxLOG_Progress
 wxLOG_User = misc2c.wxLOG_User
+wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS