Changeset ef628a1 in sasview for guiframe/model_thread.py


Ignore:
Timestamp:
Feb 17, 2009 10:13:12 AM (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:
202a7dc3
Parents:
f343069
Message:

statusbar improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/model_thread.py

    rdd66fbd ref628a1  
    110110        self.model = model 
    111111        self.starttime = 0 
    112         
     112        wx.PostEvent(self.parent, StatusEvent(status=\ 
     113                    "Start Drawing model  ",curr_thread=self,type="start")) 
    113114         
    114115    def isquit(self): 
     
    122123            raise KeyboardInterrupt 
    123124         
    124     def update(self, output=None, time=None): 
     125    def update(self, output=None): 
    125126         
    126127        wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
    127         #updating ... %g sec" % time,curr_thread=self,type="update")) 
     128        #updating ... ",curr_thread=self,type="update")) 
    128129         
    129130         
     
    138139         
    139140        self.starttime = time.time() 
    140         print "model_thread" 
     141         
     142         
     143        lx = len(self.x) 
    141144        wx.PostEvent(self.parent, StatusEvent(status=\ 
    142                     "Start Drawing model %g " % (self.starttime))) 
    143         lx = len(self.x) 
    144         
     145                       "Computing ",curr_thread=self,type="update")) 
    145146        for i_x in range(len(self.x)): 
    146147            # Check whether we need to bail out 
    147             self.update(output=output, time=time.time() ) 
     148            self.update(output=output ) 
    148149            self.isquit() 
    149150             
Note: See TracChangeset for help on using the changeset viewer.