[Spambayes-checkins] spambayes/Outlook2000/dialogs async_processor.py, 1.6, 1.7

Mark Hammond mhammond at users.sourceforge.net
Sun Aug 31 23:34:21 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv6048

Modified Files:
	async_processor.py 
Log Message:
Get the first tick of the progress bar up a little faster, so the user 
knows the process has started.


Index: async_processor.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/async_processor.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** async_processor.py	27 Aug 2003 02:11:38 -0000	1.6
--- async_processor.py	1 Sep 2003 05:34:19 -0000	1.7
***************
*** 30,34 ****
          self.processor = processor
          self.stopping = False
!         self.total_control_ticks = 100
          self.current_stage = 0
          self.set_stages( (("", 1.0),) )
--- 30,34 ----
          self.processor = processor
          self.stopping = False
!         self.total_control_ticks = 40
          self.current_stage = 0
          self.set_stages( (("", 1.0),) )
***************
*** 72,77 ****
          stage_name, start, prop = self._get_current_stage()
          total_prop = start + this_prop * prop
!         # How may ticks is this on the control
!         control_tick = int(total_prop * self.total_control_ticks)
          #print "Tick", self.current_stage_tick, "is", this_prop, "through the stage,", total_prop, "through the total - ctrl tick is", control_tick
          while self.current_control_tick < control_tick:
--- 72,78 ----
          stage_name, start, prop = self._get_current_stage()
          total_prop = start + this_prop * prop
!         # How may ticks is this on the control (but always have 1, so the
!         # user knows the process has actually started.)
!         control_tick = max(1,int(total_prop * self.total_control_ticks))
          #print "Tick", self.current_stage_tick, "is", this_prop, "through the stage,", total_prop, "through the total - ctrl tick is", control_tick
          while self.current_control_tick < control_tick:





More information about the Spambayes-checkins mailing list