X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6999b0d8e9740918ed66bff0ee6fe147b6367a97..aa2097dda265042a8b7f9950cbe9f149acfc258d:/utils/wxPython/src/msw/controls.py diff --git a/utils/wxPython/src/msw/controls.py b/utils/wxPython/src/msw/controls.py index c38fcaf063..df2650c7aa 100644 --- a/utils/wxPython/src/msw/controls.py +++ b/utils/wxPython/src/msw/controls.py @@ -30,6 +30,7 @@ class wxControl(wxControlPtr): def __init__(self,*_args,**_kwargs): self.this = apply(controlsc.new_wxControl,_args,_kwargs) self.thisown = 1 + wx._StdWindowCallbacks(self) @@ -41,6 +42,12 @@ class wxButtonPtr(wxControlPtr): def SetDefault(self, *_args, **_kwargs): val = apply(controlsc.wxButton_SetDefault,(self,) + _args, _kwargs) return val + def SetBackgroundColour(self, *_args, **_kwargs): + val = apply(controlsc.wxButton_SetBackgroundColour,(self,) + _args, _kwargs) + return val + def SetForegroundColour(self, *_args, **_kwargs): + val = apply(controlsc.wxButton_SetForegroundColour,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxButton(wxButtonPtr):