X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..d5f005cc9385455ceebdf2063aa7f421f70315d1:/wxPython/src/gtk/cmndlgs.py?ds=sidebyside diff --git a/wxPython/src/gtk/cmndlgs.py b/wxPython/src/gtk/cmndlgs.py index 0947274149..05e508a769 100644 --- a/wxPython/src/gtk/cmndlgs.py +++ b/wxPython/src/gtk/cmndlgs.py @@ -17,7 +17,7 @@ from controls import * from events import * import wx -class wxColourDataPtr : +class wxColourDataPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -29,7 +29,7 @@ class wxColourDataPtr : return val def GetColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetCustomColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs) @@ -226,7 +226,7 @@ class wxTextEntryDialog(wxTextEntryDialogPtr): -class wxFontDataPtr : +class wxFontDataPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -241,7 +241,7 @@ class wxFontDataPtr : return val def GetColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetChosenFont(self, *_args, **_kwargs): val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)