On Monday 08 September 2008 03:15:47 pm Paul McNett wrote: > johnf wrote: > > On Monday 08 September 2008 02:48:52 pm Paul McNett wrote: > >> johnf wrote: > >>> On Monday 08 September 2008 02:14:26 pm johnf wrote: > >>>> On Monday 08 September 2008 02:05:44 pm Paul McNett wrote: > >>>>> dabo.ui.yieldUI() > >>>> > >>>> Oh yea! Thanks at least now I'm getting some sort of update. I > >>>> continue testing. > >>> > >>> I guess I spoke to soon. It appears that it works only the first time. > >> > >> In addition to calling refresh() before the yieldUI(), check your > >> sourcecode. In the code you posted, you've never defined the Range of > >> the gauge, which means it'll get the default Range of 100. > > > > Yes I did not set the Range. Even when I set it to 2 I only get half of > > the gauge to work > > Your Range should be the size of your file in bytes. Update Value with > the number of bytes transferred so far. So, a Range of 100 (or 2) would > be overstepping the maximum value of the gauge almost immediately, which > could certainly be the problem. > > You could also keep Range at 100 and update Value with the percentage of > the file uploaded, which is easy to calculate. > > But the point is, make sure Range and Value are related in some way. :) > > Paul
The code I uploaded just happen to have the Range code commented. I set the Range based on the size of the file divided by 8192B which is the size of a ftp transfer filesize=os.stat(self.thefileandPath)[6] / 8192 self.theGauge.Range=filesize But your point was well made. -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
