]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/msw/controls.py
Reenabled deleteallitems events, marked
[wxWidgets.git] / utils / wxPython / src / msw / controls.py
index c38fcaf063fef27783e57266b806a077386ab10e..df2650c7aa4a6c52afe4d35c364a92fdd7004b42 100644 (file)
@@ -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 "<C wxButton instance at %s>" % (self.this,)
 class wxButton(wxButtonPtr):