MCPcopy Create free account
hub / github.com/Image-Py/imagepy / __init__

Method __init__

imagepy/ui/plotwindow.py:10–23  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

8class 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

Callers

nothing calls this directly

Calls 4

init_bufMethod · 0.95
set_title_labelMethod · 0.95
__init__Method · 0.45
BindMethod · 0.45

Tested by

no test coverage detected