| 10 | |
| 11 | |
| 12 | class PreCheckMessage: |
| 13 | def __init__(self, msg): |
| 14 | # wx may not be installed, in which case print to console. For all other prechecks, should pop up a MessageDialog |
| 15 | try: |
| 16 | import wx |
| 17 | app = wx.App(False) |
| 18 | wx.MessageBox(msg, 'Error', wx.ICON_ERROR | wx.STAY_ON_TOP) |
| 19 | app.MainLoop() |
| 20 | except (KeyboardInterrupt, SystemExit): |
| 21 | raise |
| 22 | except: |
| 23 | pass |
| 24 | finally: |
| 25 | print(msg) |
| 26 | |
| 27 | |
| 28 | def version_precheck(): |