- Correction to previous commit: added required files.
This commit is contained in:
21
gui/Gui/Error.py
Normal file
21
gui/Gui/Error.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
""" Import externals """
|
||||
import wx
|
||||
import sys
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
""" Import scyther-gui components """
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
def ShowAndExit(text):
|
||||
title = "Error"
|
||||
dlg = wx.MessageDialog(None, text, title, wx.ID_OK | wx.ICON_ERROR)
|
||||
result = dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user