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

Method __init__

imagepy/ui/tableframe.py:47–60  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

45 """CanvasFrame: derived from the wx.core.Frame"""
46 ## TODO: Main frame ???
47 def __init__(self, parent=None):
48 wx.Frame.__init__ ( self, parent, id = wx.ID_ANY,
49 title = wx.EmptyString,
50 pos = wx.DefaultPosition,
51 size = wx.Size( -1,-1 ),
52 style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
53 self.tablepanel = TablePanel(self)
54 logopath = os.path.join(root_dir, 'data/logo.ico')
55 self.SetIcon(wx.Icon(logopath, wx.BITMAP_TYPE_ICO))
56 self.Bind(wx.EVT_ACTIVATE, self.on_valid)
57 #self.SetAcceleratorTable(IPy.curapp.shortcut)
58 self.Bind(wx.EVT_CLOSE, self.on_close)
59 self.tablepanel.set_handler(self.set_title)
60 #self.canvaspanel.set_handler(self.set_title)
61
62 def set_tps(self, tps):
63 self.tablepanel.set_tps(tps)

Callers

nothing calls this directly

Calls 4

TablePanelClass · 0.85
__init__Method · 0.45
BindMethod · 0.45
set_handlerMethod · 0.45

Tested by

no test coverage detected