Changeset d7e391e in sasview for sansview


Ignore:
Timestamp:
Apr 15, 2009 4:14:29 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
06b59fe
Parents:
298b762
Message:

status message change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r69bee6d rd7e391e  
    463463        except: 
    464464            msg= "%s error: %s" % (engineType,sys.exc_value) 
    465             wx.PostEvent(self.parent, StatusEvent(status= msg )) 
     465            wx.PostEvent(self.parent, StatusEvent(status= msg ,type="stop")) 
    466466            return  
    467467               
     
    549549        except: 
    550550            msg= title +" error: %s" % sys.exc_value 
    551             wx.PostEvent(self.parent, StatusEvent(status= msg )) 
     551            wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 
    552552            return 
    553553        
     
    595595                        wx.PostEvent(self.parent, StatusEvent(status="Page was already Created")) 
    596596                except: 
    597                     raise 
    598                     #wx.PostEvent(self.parent, StatusEvent(status="Creating Fit page: %s"\ 
    599                     #%sys.exc_value)) 
    600                     #return 
     597                    wx.PostEvent(self.parent, StatusEvent(status="Creating Fit page: %s"\ 
     598                    %sys.exc_value)) 
     599                    return 
    601600     
    602601    def _single_fit_completed(self,result,pars,cpage, elapsed=None): 
     
    638637             
    639638        except: 
    640             msg= "Single Fit completed but Following error occurred:" 
    641             wx.PostEvent(self.parent, StatusEvent(status="%s %s" % (msg, sys.exc_value))) 
     639            msg= "Single Fit completed but Following error occurred:%s"% sys.exc_value 
     640            wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 
    642641            return 
    643642        
     
    694693                     
    695694        except: 
    696              msg= "Simultaneous Fit completed but Following error occurred: " 
    697              wx.PostEvent(self.parent, StatusEvent(status="%s%s" %(msg,sys.exc_value))) 
     695             msg= "Simultaneous Fit completed" 
     696             msg +=" but Following error occurred:%s"%sys.exc_value 
     697             wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 
    698698             return  
    699699              
Note: See TracChangeset for help on using the changeset viewer.