(info, title="ImagePy Alert!")
| 97 | wx.CallAfter(pub.sendMessage, 'showmd', title=title, cont=cont, url=url) |
| 98 | |
| 99 | def _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 | |
| 108 | pub.subscribe(_alert, 'alert') |
| 109 |