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

Function _alert

imagepy/IPy.py:99–106  ·  view source on GitHub ↗
(info, title="ImagePy Alert!")

Source from the content-addressed store, hash-verified

97 wx.CallAfter(pub.sendMessage, 'showmd', title=title, cont=cont, url=url)
98
99def _alert(info, title="ImagePy Alert!"):
100 if uimode()=='no':
101 print('ImagePy Alert >>> %s'%title)
102 print(info)
103 else:
104 dialog=wx.MessageDialog(curapp, info, title, wx.OK)
105 dialog.ShowModal() == wx.ID_OK
106 dialog.Destroy()
107
108pub.subscribe(_alert, 'alert')
109

Callers

nothing calls this directly

Calls 1

uimodeFunction · 0.85

Tested by

no test coverage detected