Changeset 677


Ignore:
Timestamp:
Jul 4, 2012 1:09:13 PM (9 years ago)
Author:
toby
Message:

Provide error message on project import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r670 r677  
    441441                    G2frame.imageDefault = Data               
    442442        file.close()
    443        
     443        print 'project load successful'
     444        G2frame.NewPlot = True
     445    except:
     446        msg = wx.MessageDialog(
     447            G2frame,
     448            message="Error reading GSAS project file "+
     449            str(G2frame.GSASprojectfile)+
     450            ". Is this a .gpx file created by GSAS-II?",
     451            caption="Load Error",
     452            style=wx.ICON_ERROR | wx.OK | wx.STAY_ON_TOP)
     453        msg.ShowModal()
    444454    finally:
    445455        wx.EndBusyCursor()
    446     print 'project load successful'
    447     G2frame.NewPlot = True
    448456   
    449457def ProjFileSave(G2frame):
Note: See TracChangeset for help on using the changeset viewer.