ii2t_gis_set_error.py 626 B

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. @package gis_set_error
  3. GRASS start-up screen error message.
  4. (C) 2010-2011 by the GRASS Development Team
  5. This program is free software under the GNU General Public License
  6. (>=v2). Read the file COPYING that comes with GRASS for details.
  7. @author Martin Landa <landa.martin gmail.com>
  8. """
  9. import sys
  10. import wx
  11. def main():
  12. app = wx.App()
  13. if len(sys.argv) == 1:
  14. msg = "Unknown reason"
  15. else:
  16. msg = ""
  17. for m in sys.argv[1:]:
  18. msg += m
  19. wx.MessageBox(caption="Error", message=msg, style=wx.OK | wx.ICON_ERROR)
  20. app.MainLoop()
  21. if __name__ == "__main__":
  22. main()