X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66dae888d1b46d754469d990a2bbc957163f0bad..ff1dadae388b2f408874b80251d64d16d9d46280:/wxPython/wx/lib/buttonpanel.py diff --git a/wxPython/wx/lib/buttonpanel.py b/wxPython/wx/lib/buttonpanel.py index d99ebee363..0b3a26a8b1 100644 --- a/wxPython/wx/lib/buttonpanel.py +++ b/wxPython/wx/lib/buttonpanel.py @@ -241,9 +241,7 @@ class ButtonInfo: # -- ButtonPanel class implementation ---------------------------------- # This is the main class. -BASE = wx.PyPanel - -class ButtonPanel(BASE): +class ButtonPanel(wx.PyPanel): def __init__(self, parent, id=wx.ID_ANY, text="", style=BP_DEFAULT_STYLE, alignment=BP_ALIGN_RIGHT, name="buttonPanel"): @@ -258,7 +256,7 @@ class ButtonPanel(BASE): - name: window class name """ - BASE.__init__(self, parent, id, wx.DefaultPosition, wx.DefaultSize, + wx.PyPanel.__init__(self, parent, id, wx.DefaultPosition, wx.DefaultSize, wx.NO_BORDER, name=name) self._vButtons = []