Changeset 5fb59f0 in sasview for sansguiframe


Ignore:
Timestamp:
Mar 28, 2013 12:31:04 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
397b4e7
Parents:
3b148c3
Message:

Added project/analysis loading/saving msgs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    ra602942e r5fb59f0  
    19941994                        panel.Hide() 
    19951995            self.get_data(path) 
     1996            wx.PostEvent(self, StatusEvent(status="Completed loading.")) 
     1997        else: 
     1998            wx.PostEvent(self, StatusEvent(status=" ")) 
    19961999        if self.defaultPanel is not None and \ 
    19972000            self._mgr.GetPane(self.panels["default"].window_name).IsShown(): 
     
    20602063        if self._default_save_location == None: 
    20612064            self._default_save_location = os.getcwd() 
    2062          
     2065        wx.PostEvent(self, StatusEvent(status="Loading Analysis file...")) 
    20632066        plug_wlist = self._on_open_state_app_helper() 
    20642067        dlg = wx.FileDialog(self,  
     
    21112114        if self._default_save_location == None: 
    21122115            self._default_save_location = os.getcwd() 
    2113          
     2116        wx.PostEvent(self, StatusEvent(status="Loading Project file...")) 
    21142117        dlg = wx.FileDialog(self,  
    21152118                            "Choose a file",  
     
    21262129        #    #self.Close() 
    21272130        #except: 
     2131         
    21282132        self.load_state(path=path) 
    21292133         
     
    21342138        if self.cpanel_on_focus is not None: 
    21352139            try: 
     2140                wx.PostEvent(self,  
     2141                             StatusEvent(status="Saving Analysis file...")) 
    21362142                self.cpanel_on_focus.on_save(event) 
     2143                wx.PostEvent(self,  
     2144                             StatusEvent(status="Completed saving.")) 
    21372145            except: 
    21382146                msg = "Error occurred while saving: " 
     
    21462154        if self._current_perspective is  None: 
    21472155            return 
     2156        wx.PostEvent(self, StatusEvent(status="Saving Project file...")) 
    21482157        reader, ext = self._current_perspective.get_extensions() 
    21492158        path = None 
     
    21762185                fd.write(doc.toprettyxml()) 
    21772186                fd.close() 
     2187                wx.PostEvent(self, StatusEvent(status="Completed Saving.")) 
    21782188            else: 
    21792189                msg = "%s cannot read %s\n" % (str(APPLICATION_NAME), str(path)) 
Note: See TracChangeset for help on using the changeset viewer.