MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / PreCheckMessage

Class PreCheckMessage

service/prereqsCheck.py:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class 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
28def version_precheck():

Callers 1

pyfa.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected