def __init__(self, parent, match, dilog, pos=(0, 0)):
wx.Panel.__init__(self, parent, pos=pos, size=(300, 75))
lbltext = "Pick the Winner of the Match"
lbl = wx.StaticText(self, label=lbltext, pos=(30, 0))
l1 = wx.StaticText(self, label=str(match.part1), pos=(23, 50))
l2 = wx.StaticText(self, label=str(match.part2), pos=(173, 50))
self.w1 = wx.SpinCtrl(self, min=-99, max=99, pos=(30, 20), size=(50, 40))
self.w2 = wx.SpinCtrl(self, min=-99, max=99, pos=(180, 20), size=(50,40))
#self.Bind(wx.EVT_BUTTON, dilog.winner1, w1)
#self.Bind(wx.EVT_BUTTON, dilog.winner2, w2)
评论列表
文章目录