X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0220cbc1695d01a55964f31987f2fe78cf212ca1..db34b2d45de32b374dbccecb96ff8a0100b2def1:/wxPython/src/gtk/windows.py diff --git a/wxPython/src/gtk/windows.py b/wxPython/src/gtk/windows.py index 595ac63fe1..e28009f14d 100644 --- a/wxPython/src/gtk/windows.py +++ b/wxPython/src/gtk/windows.py @@ -201,7 +201,7 @@ class wxWindowPtr(wxEvtHandlerPtr): return val def GetFont(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs) - if val: val = wxFontPtr(val) + if val: val = wxFontPtr(val) ; val.thisown = 1 return val def GetForegroundColour(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_GetForegroundColour,(self,) + _args, _kwargs) @@ -553,6 +553,12 @@ class wxWindowPtr(wxEvtHandlerPtr): val = apply(windowsc.wxWindow_GetAcceleratorTable,(self,) + _args, _kwargs) if val: val = wxAcceleratorTablePtr(val) return val + def GetDefaultItem(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetDefaultItem,(self,) + _args, _kwargs) + return val + def SetDefaultItem(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_SetDefaultItem,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) # replaces broken shadow method @@ -573,7 +579,7 @@ class wxWindow(wxWindowPtr): def wxPreWindow(*_args,**_kwargs): val = wxWindowPtr(apply(windowsc.new_wxPreWindow,_args,_kwargs)) val.thisown = 1 - val._setOORInfo(self) + val._setOORInfo(val) return val @@ -587,12 +593,6 @@ class wxPanelPtr(wxWindowPtr): def InitDialog(self, *_args, **_kwargs): val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs) return val - def GetDefaultItem(self, *_args, **_kwargs): - val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs) - return val - def SetDefaultItem(self, *_args, **_kwargs): - val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs) - return val def __repr__(self): return "" % (self.this,) class wxPanel(wxPanelPtr): @@ -606,6 +606,7 @@ class wxPanel(wxPanelPtr): def wxPrePanel(*_args,**_kwargs): val = wxPanelPtr(apply(windowsc.new_wxPrePanel,_args,_kwargs)) val.thisown = 1 + val._setOORInfo(val) return val @@ -684,7 +685,7 @@ class wxScrolledWindow(wxScrolledWindowPtr): def wxPreScrolledWindow(*_args,**_kwargs): val = wxScrolledWindowPtr(apply(windowsc.new_wxPreScrolledWindow,_args,_kwargs)) val.thisown = 1 - val._setOORInfo(self) + val._setOORInfo(val) return val