def getPanelBottomButtons(self):
panel = wx.Panel(self)
sizer = wx.BoxSizer(wx.HORIZONTAL)
b1 = wx.Button(panel, -1, "OK")
sizer.Add(b1, 0, wx.ALIGN_RIGHT, border=5)
b2 = wx.Button(panel, -1, "Apply")
sizer.Add(b2, 0, wx.ALIGN_RIGHT, border=5)
b3 = wx.Button(panel, -1, "Cancel")
sizer.Add(b3, 0, wx.LEFT|wx.RIGHT, border=5)
b1.Bind(wx.EVT_BUTTON, self._OnButtonOK)
b2.Bind(wx.EVT_BUTTON, self._OnButtonApply)
b3.Bind(wx.EVT_BUTTON, self._OnButtonCancel)
panel.SetSizer(sizer)
return panel
评论列表
文章目录