Ignore:
Timestamp:
Aug 22, 2011 10:37:27 AM (13 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:
eaa7162
Parents:
50f4401
Message:

small fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/slit_length_calculator_panel.py

    r7d45a56 r29a90b0  
    189189            self.reader = DataReader(path=path, 
    190190                                    completefn=self.complete_loading, 
    191                                     updatefn=None) 
     191                                    updatefn=self.load_update) 
    192192            self.reader.queue() 
     193            self.load_update() 
    193194        except: 
    194195            if self.parent.parent is None: 
     
    198199                          StatusEvent(status=msg, type='stop')) 
    199200            return  
     201         
     202    def load_update(self): 
     203        """ 
     204        print update on the status bar 
     205        """ 
     206        if self.parent.parent is None: 
     207                return  
     208        if self.reader.isrunning(): 
     209            type = "progress" 
     210        else: 
     211            type = "stop" 
     212        wx.PostEvent(self.parent.parent, StatusEvent(status="", 
     213                                                  type=type)) 
    200214             
    201215    def complete_loading(self, data=None, filename=''): 
Note: See TracChangeset for help on using the changeset viewer.