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

Function showips

imagepy/IPy.py:44–57  ·  view source on GitHub ↗
(ips)

Source from the content-addressed store, hash-verified

42 # return None if win==None else win.canvas.ips
43
44def showips(ips):
45 if uimode()=='ipy':
46 from .ui.canvasframe import CanvasPanel
47 canvasp = CanvasPanel(curapp.canvasnb)
48 canvasp.set_ips(ips)
49 curapp.canvasnb.add_page( canvasp, ips)
50 #canvasp.canvas.initBuffer()
51
52 curapp.auimgr.Update()
53 elif uimode()=='ij':
54 from .ui.canvasframe import CanvasFrame
55 frame = CanvasFrame(curapp)
56 frame.set_ips(ips)
57 frame.Show()
58
59pub.subscribe(showips, 'showips')
60def show_ips(ips):

Callers 1

showimgFunction · 0.85

Calls 6

set_ipsMethod · 0.95
set_ipsMethod · 0.95
uimodeFunction · 0.85
CanvasPanelClass · 0.85
CanvasFrameClass · 0.85
add_pageMethod · 0.45

Tested by

no test coverage detected