(self, parent=None)
| 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) |
nothing calls this directly
no test coverage detected