X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78385733e74adc246df560b6c27c96dd3fbe1a96..8208e181cb576ec6cda37624923f95a59af43072:/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