]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/windows2.py
highlight the focused item in non report mode too
[wxWidgets.git] / wxPython / src / msw / windows2.py
index 3e39408b67b1ab63b1c7e4efa26fdac30bcdcf79..5c036b69eeda142888866152069fd1beee492177 100644 (file)
@@ -65,7 +65,6 @@ class wxNotebookPtr(wxControlPtr):
         return val
     def GetImageList(self, *_args, **_kwargs):
         val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs)
-        if val: val = wxImageListPtr(val) 
         return val
     def GetPageImage(self, *_args, **_kwargs):
         val = apply(windows2c.wxNotebook_GetPageImage,(self,) + _args, _kwargs)
@@ -76,6 +75,12 @@ class wxNotebookPtr(wxControlPtr):
     def GetRowCount(self, *_args, **_kwargs):
         val = apply(windows2c.wxNotebook_GetRowCount,(self,) + _args, _kwargs)
         return val
+    def SetPageSize(self, *_args, **_kwargs):
+        val = apply(windows2c.wxNotebook_SetPageSize,(self,) + _args, _kwargs)
+        return val
+    def SetPadding(self, *_args, **_kwargs):
+        val = apply(windows2c.wxNotebook_SetPadding,(self,) + _args, _kwargs)
+        return val
     def DeletePage(self, *_args, **_kwargs):
         val = apply(windows2c.wxNotebook_DeletePage,(self,) + _args, _kwargs)
         return val
@@ -93,7 +98,6 @@ class wxNotebookPtr(wxControlPtr):
         return val
     def GetPage(self, *_args, **_kwargs):
         val = apply(windows2c.wxNotebook_GetPage,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
         return val
     def ResizeChildren(self, *_args, **_kwargs):
         val = apply(windows2c.wxNotebook_ResizeChildren,(self,) + _args, _kwargs)
@@ -124,7 +128,6 @@ class wxSplitterEventPtr(wxCommandEventPtr):
         return val
     def GetWindowBeingRemoved(self, *_args, **_kwargs):
         val = apply(windows2c.wxSplitterEvent_GetWindowBeingRemoved,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
         return val
     def SetSashPosition(self, *_args, **_kwargs):
         val = apply(windows2c.wxSplitterEvent_SetSashPosition,(self,) + _args, _kwargs)
@@ -159,11 +162,9 @@ class wxSplitterWindowPtr(wxWindowPtr):
         return val
     def GetWindow1(self, *_args, **_kwargs):
         val = apply(windows2c.wxSplitterWindow_GetWindow1,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
         return val
     def GetWindow2(self, *_args, **_kwargs):
         val = apply(windows2c.wxSplitterWindow_GetWindow2,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
         return val
     def Initialize(self, *_args, **_kwargs):
         val = apply(windows2c.wxSplitterWindow_Initialize,(self,) + _args, _kwargs)
@@ -225,6 +226,12 @@ class wxTaskBarIconPtr(wxEvtHandlerPtr):
     def PopupMenu(self, *_args, **_kwargs):
         val = apply(windows2c.wxTaskBarIcon_PopupMenu,(self,) + _args, _kwargs)
         return val
+    def IsIconInstalled(self, *_args, **_kwargs):
+        val = apply(windows2c.wxTaskBarIcon_IsIconInstalled,(self,) + _args, _kwargs)
+        return val
+    def IsOK(self, *_args, **_kwargs):
+        val = apply(windows2c.wxTaskBarIcon_IsOK,(self,) + _args, _kwargs)
+        return val
     def __repr__(self):
         return "<C wxTaskBarIcon instance at %s>" % (self.this,)
 class wxTaskBarIcon(wxTaskBarIconPtr):
@@ -250,6 +257,12 @@ class wxTaskBarIcon(wxTaskBarIconPtr):
 
 #-------------- VARIABLE WRAPPERS ------------------
 
+wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
+wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
+wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
+wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
+wxEVT_COMMAND_SPLITTER_UNSPLIT = windows2c.wxEVT_COMMAND_SPLITTER_UNSPLIT
+wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = windows2c.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
 wxSPLIT_HORIZONTAL = windows2c.wxSPLIT_HORIZONTAL
 wxSPLIT_VERTICAL = windows2c.wxSPLIT_VERTICAL
 wxSPLIT_DRAG_NONE = windows2c.wxSPLIT_DRAG_NONE