X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5bff6bb8eace63d3841c1eb6d36230647c854f76..56f5d962ad563d79930c01b51434fb1ca6d189d6:/utils/wxPython/src/gtk/controls.py diff --git a/utils/wxPython/src/gtk/controls.py b/utils/wxPython/src/gtk/controls.py index 080f925482..2ede7c105f 100644 --- a/utils/wxPython/src/gtk/controls.py +++ b/utils/wxPython/src/gtk/controls.py @@ -15,6 +15,12 @@ class wxControlPtr(wxWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 + def CreateControl(self, *_args, **_kwargs): + val = apply(controlsc.wxControl_CreateControl,(self,) + _args, _kwargs) + return val + def Command(self, *_args, **_kwargs): + val = apply(controlsc.wxControl_Command,(self,) + _args, _kwargs) + return val def GetLabel(self, *_args, **_kwargs): val = apply(controlsc.wxControl_GetLabel,(self,) + _args, _kwargs) return val @@ -24,8 +30,10 @@ class wxControlPtr(wxWindowPtr): def __repr__(self): return "" % (self.this,) class wxControl(wxControlPtr): - def __init__(self,this): - self.this = this + def __init__(self,*_args,**_kwargs): + self.this = apply(controlsc.new_wxControl,_args,_kwargs) + self.thisown = 1 + wx._StdWindowCallbacks(self) @@ -783,6 +791,11 @@ class wxSlider(wxSliderPtr): #-------------- FUNCTION WRAPPERS ------------------ +def wxButton_GetDefaultSize(*_args, **_kwargs): + val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs) + if val: val = wxSizePtr(val); val.thisown = 1 + return val + #-------------- VARIABLE WRAPPERS ------------------