(self, parent)
| 8 | class LineCanvas(wx.Panel): |
| 9 | """LineCanvas: derived from wx.core.Panel""" |
| 10 | def __init__(self, parent): |
| 11 | wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, |
| 12 | pos = wx.DefaultPosition, size = wx.Size(256,80), |
| 13 | style = wx.SIMPLE_BORDER|wx.TAB_TRAVERSAL ) |
| 14 | self.init_buf() |
| 15 | self.data, self.extent = [], [0,0,1,1] |
| 16 | self.set_title_label('Graph', 'X-unit', 'Y-unit') |
| 17 | self.dirty = False |
| 18 | |
| 19 | self.SetBackgroundColour( wx.Colour( 255, 255, 255 ) ) |
| 20 | self.Bind(wx.EVT_SIZE, self.on_size) |
| 21 | self.Bind(wx.EVT_PAINT, self.on_paint) |
| 22 | self.Bind(wx.EVT_IDLE, self.on_idle) |
| 23 | self.Bind(wx.EVT_MOTION, self.on_move ) |
| 24 | |
| 25 | def update(self):self.dirty = True |
| 26 |
nothing calls this directly
no test coverage detected