]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/windows3.py
[start of] a wxUniversal implementation of wxToolBar
[wxWidgets.git] / wxPython / src / gtk / windows3.py
index 33b278562769f9daf86c5930d381fc707762fa4e..b3e5c8ffed1219930565f332e6f8dce54d5c09b2 100644 (file)
@@ -47,8 +47,9 @@ class wxSashEventPtr(wxCommandEventPtr):
     def __repr__(self):
         return "<C wxSashEvent instance at %s>" % (self.this,)
 class wxSashEvent(wxSashEventPtr):
-    def __init__(self,this):
-        self.this = this
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(windows3c.new_wxSashEvent,_args,_kwargs)
+        self.thisown = 1
 
 
 
@@ -57,6 +58,9 @@ class wxSashWindowPtr(wxWindowPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
+    def Create(self, *_args, **_kwargs):
+        val = apply(windows3c.wxSashWindow_Create,(self,) + _args, _kwargs)
+        return val
     def GetSashVisible(self, *_args, **_kwargs):
         val = apply(windows3c.wxSashWindow_GetSashVisible,(self,) + _args, _kwargs)
         return val
@@ -114,9 +118,15 @@ class wxSashWindow(wxSashWindowPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(windows3c.new_wxSashWindow,_args,_kwargs)
         self.thisown = 1
-        #wx._StdWindowCallbacks(self)
+        self._setOORInfo(self)
+
 
 
+def wxPreSashWindow(*_args,**_kwargs):
+    val = wxSashWindowPtr(apply(windows3c.new_wxPreSashWindow,_args,_kwargs))
+    val.thisown = 1
+    val._setOORInfo(val)
+    return val
 
 
 class wxQueryLayoutInfoEventPtr(wxEventPtr):
@@ -157,8 +167,9 @@ class wxQueryLayoutInfoEventPtr(wxEventPtr):
     def __repr__(self):
         return "<C wxQueryLayoutInfoEvent instance at %s>" % (self.this,)
 class wxQueryLayoutInfoEvent(wxQueryLayoutInfoEventPtr):
-    def __init__(self,this):
-        self.this = this
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(windows3c.new_wxQueryLayoutInfoEvent,_args,_kwargs)
+        self.thisown = 1
 
 
 
@@ -183,8 +194,9 @@ class wxCalculateLayoutEventPtr(wxEventPtr):
     def __repr__(self):
         return "<C wxCalculateLayoutEvent instance at %s>" % (self.this,)
 class wxCalculateLayoutEvent(wxCalculateLayoutEventPtr):
-    def __init__(self,this):
-        self.this = this
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(windows3c.new_wxCalculateLayoutEvent,_args,_kwargs)
+        self.thisown = 1
 
 
 
@@ -193,6 +205,9 @@ class wxSashLayoutWindowPtr(wxSashWindowPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
+    def Create(self, *_args, **_kwargs):
+        val = apply(windows3c.wxSashLayoutWindow_Create,(self,) + _args, _kwargs)
+        return val
     def GetAlignment(self, *_args, **_kwargs):
         val = apply(windows3c.wxSashLayoutWindow_GetAlignment,(self,) + _args, _kwargs)
         return val
@@ -214,14 +229,18 @@ class wxSashLayoutWindow(wxSashLayoutWindowPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(windows3c.new_wxSashLayoutWindow,_args,_kwargs)
         self.thisown = 1
-        #wx._StdWindowCallbacks(self)
-        #wx._checkForCallback(self, 'OnCalculateLayout',    wxEVT_CALCULATE_LAYOUT)
-        #wx._checkForCallback(self, 'OnQueryLayoutInfo',    wxEVT_QUERY_LAYOUT_INFO)
+        self._setOORInfo(self)
+
 
 
+def wxPreSashLayoutWindow(*_args,**_kwargs):
+    val = wxSashLayoutWindowPtr(apply(windows3c.new_wxPreSashLayoutWindow,_args,_kwargs))
+    val.thisown = 1
+    val._setOORInfo(val)
+    return val
 
 
-class wxLayoutAlgorithmPtr :
+class wxLayoutAlgorithmPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
@@ -247,6 +266,85 @@ class wxLayoutAlgorithm(wxLayoutAlgorithmPtr):
 
 
 
+class wxPopupWindowPtr(wxWindowPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def Create(self, *_args, **_kwargs):
+        val = apply(windows3c.wxPopupWindow_Create,(self,) + _args, _kwargs)
+        return val
+    def Position(self, *_args, **_kwargs):
+        val = apply(windows3c.wxPopupWindow_Position,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxPopupWindow instance at %s>" % (self.this,)
+class wxPopupWindow(wxPopupWindowPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(windows3c.new_wxPopupWindow,_args,_kwargs)
+        self.thisown = 1
+        self._setOORInfo(self)
+
+
+
+def wxPrePopupWindow(*_args,**_kwargs):
+    val = wxPopupWindowPtr(apply(windows3c.new_wxPrePopupWindow,_args,_kwargs))
+    val.thisown = 1
+    val._setOORInfo(val)
+    return val
+
+
+class wxPopupTransientWindowPtr(wxPopupWindowPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def _setCallbackInfo(self, *_args, **_kwargs):
+        val = apply(windows3c.wxPopupTransientWindow__setCallbackInfo,(self,) + _args, _kwargs)
+        return val
+    def Popup(self, *_args, **_kwargs):
+        val = apply(windows3c.wxPopupTransientWindow_Popup,(self,) + _args, _kwargs)
+        return val
+    def Dismiss(self, *_args, **_kwargs):
+        val = apply(windows3c.wxPopupTransientWindow_Dismiss,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxPopupTransientWindow instance at %s>" % (self.this,)
+class wxPopupTransientWindow(wxPopupTransientWindowPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(windows3c.new_wxPopupTransientWindow,_args,_kwargs)
+        self.thisown = 1
+        self._setCallbackInfo(self, wxPopupTransientWindow)
+        self._setOORInfo(self)
+
+
+
+def wxPrePopupTransientWindow(*_args,**_kwargs):
+    val = wxPopupTransientWindowPtr(apply(windows3c.new_wxPrePopupTransientWindow,_args,_kwargs))
+    val.thisown = 1
+    val._setOORInfo(val)
+    return val
+
+
+class wxTipWindowPtr(wxPopupTransientWindowPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def SetBoundingRect(self, *_args, **_kwargs):
+        val = apply(windows3c.wxTipWindow_SetBoundingRect,(self,) + _args, _kwargs)
+        return val
+    def Close(self, *_args, **_kwargs):
+        val = apply(windows3c.wxTipWindow_Close,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxTipWindow instance at %s>" % (self.this,)
+class wxTipWindow(wxTipWindowPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(windows3c.new_wxTipWindow,_args,_kwargs)
+        self.thisown = 1
+        self._setOORInfo(self)
+
+
+
+
 
 
 #-------------- FUNCTION WRAPPERS ------------------
@@ -262,6 +360,9 @@ wxSASH_LEFT = windows3c.wxSASH_LEFT
 wxSASH_NONE = windows3c.wxSASH_NONE
 wxEVT_SASH_DRAGGED = windows3c.wxEVT_SASH_DRAGGED
 wxSW_3D = windows3c.wxSW_3D
+wxSW_3DSASH = windows3c.wxSW_3DSASH
+wxSW_3DBORDER = windows3c.wxSW_3DBORDER
+wxSW_BORDER = windows3c.wxSW_BORDER
 wxSASH_STATUS_OK = windows3c.wxSASH_STATUS_OK
 wxSASH_STATUS_OUT_OF_RANGE = windows3c.wxSASH_STATUS_OUT_OF_RANGE
 wxLAYOUT_HORIZONTAL = windows3c.wxLAYOUT_HORIZONTAL