scyther/gui/Gui/Error.py

22 lines
517 B
Python

#!/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()