(data, title)
| 161 | return rst == wx.ID_OK |
| 162 | |
| 163 | def showtable(data, title): |
| 164 | from .core import TablePlus |
| 165 | if uimode()=='ipy': |
| 166 | from .ui.tableframe import TablePanel |
| 167 | tps = TablePlus(data, title) |
| 168 | tablep = TablePanel(curapp.tablenb) |
| 169 | tablep.set_tps(tps) |
| 170 | curapp.tablenb.add_page( tablep, tps) |
| 171 | info = curapp.auimgr.GetPane(curapp.tablenbwrap) |
| 172 | info.Show(True) |
| 173 | curapp.auimgr.Update() |
| 174 | elif uimode()=='ij': |
| 175 | from .ui.tableframe import TableFrame |
| 176 | tps = TablePlus(data, title) |
| 177 | frame = TableFrame(curapp) |
| 178 | frame.set_tps(tps) |
| 179 | frame.Show() |
| 180 | |
| 181 | # MT callafter(TableLog.table, *(title, data, cols, rows)) |
| 182 | |
| 183 | pub.subscribe(showtable, 'showtable') |
| 184 | def show_table(data, title): |
nothing calls this directly
no test coverage detected