X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c4165adfa02a1255219948fb4e5b78d4cbb2dae..70541533c8e108249a82fbe2bc05ccfb73bf028d:/wxPython/src/gtk/windows2.py diff --git a/wxPython/src/gtk/windows2.py b/wxPython/src/gtk/windows2.py index f09a31fac0..9d3fca4528 100644 --- a/wxPython/src/gtk/windows2.py +++ b/wxPython/src/gtk/windows2.py @@ -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) @@ -99,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) @@ -130,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) @@ -165,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)