Changeset 700f9b4 in sasview for guiframe/statusbar.py
- Timestamp:
- Feb 23, 2009 3:24:24 PM (15 years ago)
- 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:
- 2a8fac1
- Parents:
- 353041d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/statusbar.py
r858f2ae5 r700f9b4 29 29 """ 30 30 self.count +=1 31 if self.count == 20:31 if self.count ==30: 32 32 self.timer_stop.Stop() 33 33 self.gauge.Hide() 34 self.SetStatusText( "", 0) 34 35 self.count=0 35 36 def OnTimer(self, evt): … … 48 49 while(self.thread.isrunning()): 49 50 self.progress += 1 50 51 # Update the Rqnge if it has changed52 #if self.range >= 0 and self.range != self.gauge.GetRange():53 # self.gauge.SetRange(self.range)54 55 51 # Update the progress value if it is less than the range 56 52 if self.progress < self.gauge.GetRange()-20: … … 78 74 else: 79 75 self.thread= thread 80 #if self.thread !=None:81 76 self.gauge.Show(True) 82 77 if type.lower()=="start": … … 95 90 self.SetStatusText( str(msg), 0) 96 91 self.gauge.Pulse() 97 print "in progress"92 #print "in progress" 98 93 99 94 if type.lower()=="update": … … 104 99 if self.progress < self.gauge.GetRange()-20: 105 100 self.gauge.SetValue(int(self.progress)) 101 106 102 if type.lower()=="stop": 107 print "it is complete"108 103 self.gauge.Show(True) 109 104 self.timer.Stop()
Note: See TracChangeset
for help on using the changeset viewer.