X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78385733e74adc246df560b6c27c96dd3fbe1a96..c79853685d09ba1d7eaef604395c40b731ed2f34:/utils/wxPython/lib/buttons.py diff --git a/utils/wxPython/lib/buttons.py b/utils/wxPython/lib/buttons.py index 6c90aceda6..41c6865172 100644 --- a/utils/wxPython/lib/buttons.py +++ b/utils/wxPython/lib/buttons.py @@ -52,13 +52,14 @@ class wxGenButtonEvent(wxPyCommandEvent): #---------------------------------------------------------------------- -class wxGenButton(wxWindow): +class wxGenButton(wxControl): def __init__(self, parent, ID, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = wxDefaultValidator, name = "genbutton"): - wxWindow.__init__(self, parent, ID, pos, size, style, name) - self.SetValidator(validator) + if style == 0: + style = wxNO_BORDER + wxControl.__init__(self, parent, ID, pos, size, style, validator, name) self.up = true self.bezelWidth = 2