Changeset 282a3e7 in sasview
- Timestamp:
- Feb 17, 2009 2:36:17 PM (16 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:
- 3215d32
- Parents:
- 2cd9153
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/statusbar.py
r2cd9153 r282a3e7 9 9 self.SetStatusWidths([-4, -1]) 10 10 rect = self.GetFieldRect(1) 11 self.gauge.SetPosition((rect.x+ 10, rect.y-2))11 self.gauge.SetPosition((rect.x+5, rect.y-2)) 12 12 13 13 self.gauge.Hide() … … 63 63 else: 64 64 self.thread= thread 65 if self.thread !=None: 66 self.gauge.Show(True) 67 if type.lower()=="start": 68 self.timer.Stop() 69 self.SetStatusText( str(msg), 0) 70 self.progress +=10 65 #if self.thread !=None: 66 self.gauge.Show(True) 67 if type.lower()=="start": 68 self.timer.Stop() 69 self.SetStatusText( str(msg), 0) 70 self.progress +=10 71 self.gauge.SetValue(int(self.progress)) 72 #self.timer.Start(1000) 73 #print "went here" 74 #self.set_progress() 75 self.progress +=10 76 if self.progress < self.gauge.GetRange()-20: 71 77 self.gauge.SetValue(int(self.progress)) 72 #self.timer.Start(1000) 73 #print "went here" 74 #self.set_progress() 75 self.progress +=10 76 if self.progress < self.gauge.GetRange()-20: 77 self.gauge.SetValue(int(self.progress)) 78 if type.lower()=="progress": 79 self.timer.Start(100) 80 self.SetStatusText( str(msg), 0) 81 self.gauge.Pulse() 82 print "in progress" 83 84 if type.lower()=="update": 85 86 self.timer.Stop() 87 self.SetStatusText( str(msg), 0) 88 self.progress +=10 89 if self.progress < self.gauge.GetRange()-20: 90 self.gauge.SetValue(int(self.progress)) 78 if type.lower()=="progress": 79 self.timer.Start(100) 80 self.SetStatusText( str(msg), 0) 81 self.gauge.Pulse() 82 print "in progress" 83 84 if type.lower()=="update": 85 86 self.timer.Stop() 87 self.SetStatusText( str(msg), 0) 88 self.progress +=10 89 if self.progress < self.gauge.GetRange()-20: 90 self.gauge.SetValue(int(self.progress)) 91 91 if type.lower()=="stop": 92 92 print "it is complete"
Note: See TracChangeset
for help on using the changeset viewer.