New toolbar wrappers
wxMask demos GenericButton now derives from wxControl Lots of small changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user