]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/gtk/windows.py
Compilation fixes
[wxWidgets.git] / utils / wxPython / src / gtk / windows.py
index 6007434049226cc253f2be6a5cdb2ebff6a101d1..df956d3e07dba074143bed1a0d1f02850a07dfcd 100644 (file)
@@ -50,6 +50,9 @@ class wxEvtHandlerPtr :
     def Connect(self, *_args, **_kwargs):
         val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs)
         return val
+    def Disconnect(self, *_args, **_kwargs):
+        val = apply(windowsc.wxEvtHandler_Disconnect,(self,) + _args, _kwargs)
+        return val
     def __repr__(self):
         return "<C wxEvtHandler instance at %s>" % (self.this,)
 class wxEvtHandler(wxEvtHandlerPtr):
@@ -265,6 +268,15 @@ class wxWindowPtr(wxEvtHandlerPtr):
     def IsEnabled(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs)
         return val
+    def IsExposed(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_IsExposed,(self,) + _args, _kwargs)
+        return val
+    def IsExposedPoint(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_IsExposedPoint,(self,) + _args, _kwargs)
+        return val
+    def IsExposedRect(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_IsExposedRect,(self,) + _args, _kwargs)
+        return val
     def IsRetained(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs)
         return val
@@ -314,6 +326,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
     def ReleaseMouse(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs)
         return val
+    def RemoveChild(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_RemoveChild,(self,) + _args, _kwargs)
+        return val
     def Reparent(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs)
         return val
@@ -463,8 +478,26 @@ class wxWindowPtr(wxEvtHandlerPtr):
         val = apply(windowsc.wxWindow_GetDropTarget,(self,) + _args, _kwargs)
         if val: val = wxDropTargetPtr(val) 
         return val
+    def GetBestSize(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_GetBestSize,(self,) + _args, _kwargs)
+        if val: val = wxSizePtr(val) ; val.thisown = 1
+        return val
+    def SetCaret(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_SetCaret,(self,) + _args, _kwargs)
+        return val
+    def GetCaret(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
+        if val: val = wxCaretPtr(val) 
+        return val
     def __repr__(self):
         return "<C wxWindow instance at %s>" % (self.this,)
+    # replaces broken shadow method
+    def GetCaret(self, *_args, **_kwargs):
+        from misc2 import wxCaretPtr
+        val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
+        if val: val = wxCaretPtr(val)
+        return val
+
 class wxWindow(wxWindowPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
@@ -564,9 +597,16 @@ class wxScrolledWindowPtr(wxPanelPtr):
     def EnableScrolling(self, *_args, **_kwargs):
         val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs)
         return val
+    def GetScrollPageSize(self, *_args, **_kwargs):
+        val = apply(windowsc.wxScrolledWindow_GetScrollPageSize,(self,) + _args, _kwargs)
+        return val
     def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
         val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs)
         return val
+    def GetTargetWindow(self, *_args, **_kwargs):
+        val = apply(windowsc.wxScrolledWindow_GetTargetWindow,(self,) + _args, _kwargs)
+        if val: val = wxWindowPtr(val) 
+        return val
     def GetVirtualSize(self, *_args, **_kwargs):
         val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
         return val
@@ -582,6 +622,12 @@ class wxScrolledWindowPtr(wxPanelPtr):
     def SetScrollbars(self, *_args, **_kwargs):
         val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs)
         return val
+    def SetScrollPageSize(self, *_args, **_kwargs):
+        val = apply(windowsc.wxScrolledWindow_SetScrollPageSize,(self,) + _args, _kwargs)
+        return val
+    def SetTargetWindow(self, *_args, **_kwargs):
+        val = apply(windowsc.wxScrolledWindow_SetTargetWindow,(self,) + _args, _kwargs)
+        return val
     def ViewStart(self, *_args, **_kwargs):
         val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs)
         return val
@@ -894,6 +940,12 @@ wxValidator_IsSilent = windowsc.wxValidator_IsSilent
 
 wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
 
+wxWindow_NewControlId = windowsc.wxWindow_NewControlId
+
+wxWindow_NextControlId = windowsc.wxWindow_NextControlId
+
+wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
+
 
 
 #-------------- VARIABLE WRAPPERS ------------------