def __init__(self, parent):
wx.Panel.__init__ ( self, parent, id = wx.ID_ANY,
pos = wx.DefaultPosition, size = wx.Size(256,80),
style = wx.SIMPLE_BORDER|wx.TAB_TRAVERSAL )
self.init_buf()
self.data, self.extent = [], [0,0,1,1]
self.set_title_label('Graph', 'X-unit', 'Y-unit')
self.update = False
self.SetBackgroundColour( wx.Colour( 255, 255, 255 ) )
self.Bind(wx.EVT_SIZE, self.on_size)
self.Bind(wx.EVT_PAINT, self.on_paint)
self.Bind(wx.EVT_IDLE, self.on_idle)
self.Bind(wx.EVT_MOTION, self.on_move )
评论列表
文章目录