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

Function showtable

imagepy/IPy.py:163–181  ·  view source on GitHub ↗
(data, title)

Source from the content-addressed store, hash-verified

161 return rst == wx.ID_OK
162
163def 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
183pub.subscribe(showtable, 'showtable')
184def show_table(data, title):

Callers

nothing calls this directly

Calls 7

set_tpsMethod · 0.95
set_tpsMethod · 0.95
uimodeFunction · 0.85
TablePlusClass · 0.85
TablePanelClass · 0.85
TableFrameClass · 0.85
add_pageMethod · 0.45

Tested by

no test coverage detected