]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/windows.py
added functions to read/write several elements at once (patch 754986)
[wxWidgets.git] / wxPython / src / msw / windows.py
index a79d3e40bd563ec4c50dbdf1c8f101ca16b2b39f..39f7f5098826191ba71efd5fb04bf3cd8ab781b1 100644 (file)
@@ -165,6 +165,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
     def Enable(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs)
         return val
+    def Disable(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_Disable,(self,) + _args, _kwargs)
+        return val
     def FindWindowById(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
         return val
@@ -174,6 +177,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
     def Fit(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
         return val
+    def FitInside(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_FitInside,(self,) + _args, _kwargs)
+        return val
     def GetBackgroundColour(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs)
         if val: val = wxColourPtr(val) ; val.thisown = 1
@@ -326,9 +332,6 @@ class wxWindowPtr(wxEvtHandlerPtr):
     def Layout(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs)
         return val
-    def LoadFromResource(self, *_args, **_kwargs):
-        val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs)
-        return val
     def Lower(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs)
         return val
@@ -457,6 +460,10 @@ class wxWindowPtr(wxEvtHandlerPtr):
     def GetVirtualSizeTuple(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_GetVirtualSizeTuple,(self,) + _args, _kwargs)
         return val
+    def GetBestVirtualSize(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_GetBestVirtualSize,(self,) + _args, _kwargs)
+        if val: val = wxSizePtr(val) ; val.thisown = 1
+        return val
     def SetClientSizeWH(self, *_args, **_kwargs):
         val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs)
         return val
@@ -564,6 +571,10 @@ class wxWindowPtr(wxEvtHandlerPtr):
         val = apply(windowsc.wxWindow_GetMaxSize,(self,) + _args, _kwargs)
         if val: val = wxSizePtr(val) ; val.thisown = 1
         return val
+    def GetAdjustedBestSize(self, *_args, **_kwargs):
+        val = apply(windowsc.wxWindow_GetAdjustedBestSize,(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
@@ -983,6 +994,9 @@ class wxMenuBarPtr(wxWindowPtr):
     def EnableTop(self, *_args, **_kwargs):
         val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
         return val
+    def IsEnabledTop(self, *_args, **_kwargs):
+        val = apply(windowsc.wxMenuBar_IsEnabledTop,(self,) + _args, _kwargs)
+        return val
     def SetLabelTop(self, *_args, **_kwargs):
         val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs)
         return val