(self, parent=None)
| 121 | """CanvasFrame: derived from the wx.core.Frame""" |
| 122 | ## TODO: Main frame ??? |
| 123 | def __init__(self, parent=None): |
| 124 | wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, |
| 125 | title = wx.EmptyString, |
| 126 | pos = wx.DefaultPosition, |
| 127 | size = wx.Size( -1,-1 ), |
| 128 | style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL ) |
| 129 | self.canvaspanel = CanvasPanel(self) |
| 130 | logopath = os.path.join(root_dir, 'data/logo.ico') |
| 131 | self.SetIcon(wx.Icon(logopath, wx.BITMAP_TYPE_ICO)) |
| 132 | self.Bind(wx.EVT_ACTIVATE, self.on_valid) |
| 133 | self.SetAcceleratorTable(IPy.curapp.shortcut) |
| 134 | self.Bind(wx.EVT_CLOSE, self.on_close) |
| 135 | self.canvaspanel.set_handler(self.set_title) |
| 136 | |
| 137 | def set_ips(self, ips): |
| 138 | self.canvaspanel.set_ips(ips) |
nothing calls this directly
no test coverage detected