def _show_table(self, tab, title): grid = self.tablenb.add_grid() if not isinstance(tab, Table): tab = Table(tab, title) App.show_table(self, tab, tab.title) grid.set_data(tab) info = self.auimgr.GetPane(self.tablenbwrap) info.Show(True) self.auimgr.Update()
def _show_table(self, tab, title): cframe = GridFrame(self) grid = cframe.grid if not isinstance(tab, Table): tab = Table(tab, title) App.show_table(self, tab, tab.title) grid.set_data(tab) cframe.Bind(wx.EVT_ACTIVATE, self.on_active_table) cframe.Bind(wx.EVT_CLOSE, self.on_close_table) cframe.SetIcon(self.GetIcon()) cframe.Show()