Changeset 4e74e13 in sasview


Ignore:
Timestamp:
Apr 5, 2010 3:12:33 PM (15 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:
45802d4
Parents:
a618972
Message:

send the proper msg to the status bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    rd0cc0bbc r4e74e13  
    116116                self.hint_msg_txt.SetForegroundColour("black") 
    117117            self.hint_msg_txt.SetLabel(msg) 
    118             wx.PostEvent(self.parent, StatusEvent(status=msg)) 
    119118        self.data_name_boxsizer.Layout() 
    120119        
     
    191190                self.volume_err_tcl.SetValue(format_number(dv)) 
    192191            except: 
    193                 raise 
    194192                msg= "Error occurred computing volume fraction: %s"%sys.exc_value 
    195193                wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 
     
    206204                self.surface_err_tcl.SetValue(format_number(ds)) 
    207205            except: 
    208                 msg= "Error occurred computing specific surface: %s"%sys.exc_value 
     206                msg = "Error occurred computing specific surface: %s"%sys.exc_value 
    209207                wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 
    210208                 
     
    404402            #compute surface and set value to txtcrtl 
    405403        except: 
    406             msg= "Error occurred computing invariant: %s"%sys.exc_value 
    407             wx.PostEvent(self.parent, StatusEvent(status= msg)) 
     404            msg = "Error occurred computing invariant: %s"%sys.exc_value 
     405            wx.PostEvent(self.parent, StatusEvent(status=msg)) 
    408406        try: 
    409407            self.get_surface(inv=inv, contrast=contrast, porod_const=porod_const,  
    410408                                    extrapolation=extrapolation) 
    411409        except: 
    412             msg= "Error occurred computing invariant: %s"%sys.exc_value 
     410            msg = "Error occurred computing invariant: %s"%sys.exc_value 
    413411            wx.PostEvent(self.parent, StatusEvent(status= msg)) 
    414412             
     
    427425        self.background_tcl.SetValue(str(BACKGROUND)) 
    428426        self.scale_tcl.SetValue(str(SCALE))  
    429         self.contrast_tcl.SetValue(str(CONTRAST))  
     427        self.contrast_tcl.SetValue(str(CONTRAST)) 
     428        self.porod_constant_tcl.SetValue('')  
    430429        self.npts_low_tcl.SetValue(str(NPTS)) 
    431430        self.enable_low_cbox.SetValue(False) 
Note: See TracChangeset for help on using the changeset viewer.