Changeset 6330


Ignore:
Timestamp:
Feb 13, 2009, 11:17:42 AM (16 years ago)
Author:
rwilson
Message:

Made error handling better.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/event_selection/EventSelection.py

    r6303 r6330  
    44################################################################################
    55
     6
    67import os
    78import os.path
    89import sys
    910import re
    10 import glob
    1111import shutil
    1212import time
     13
    1314import tempfile
    1415try:
     
    2021    import wx
    2122except ImportError:
    22     print 'Sorry, you have to install WxPython.'
    23     print 'Get it from either:'
    24     print r'   N:\georisk\downloads\event_selection, or'
    25     print '   [http://www.wxpython.org/download.php#binaries].'
     23    msg = ('Sorry, you have to install WxPython.\n'
     24           'Get it from either:\n'
     25           r'   N:\georisk\downloads\event_selection, or' '\n'
     26           '   [http://www.wxpython.org/download.php#binaries].')
     27    tkinter_error(msg)
     28    print msg
    2629    sys.exit(1)
     30
     31   
    2732Imported_PyEmbeddedImage = True
    2833try:
     
    10531058    app.SetTopWindow(frame)
    10541059    app.MainLoop()
     1060
Note: See TracChangeset for help on using the changeset viewer.