On Saturday 06 September 2008 06:43:29 pm johnf wrote:
> On Saturday 06 September 2008 06:20:35 pm Ed Leafe wrote:
> > On Sep 6, 2008, at 8:14 PM, johnf wrote:
> > > Maybe I don't understand how dGauge works then.  It would seem that
> > > I would
> > > need a dialog to pop up and within the dialog I have to control the
> > > values
> > > sent to the dGauge.  I was hoping someone already has done the job.
> > > Is that
> > > right?
> >
> >     You set Min and Max. You said it was for a file upload, right? Then
> > set Min=0 and Max=<size of file>. Then periodically set Value to the
> > number of bytes transferred.
> >
> >     I don't know how much simpler that could be.
> >
> > -- Ed Leafe
>
> Ed, what I attempting to do is provide my users with a progress bar for an
> FTP upload.  But at the moment I can't determine how to get
> ftplib.storbinary() to provide a means of reporting progress anyway so the
> question might be moot.
>
> If memory severs in VFP all I have to do is set talk on progress bar and
> the progress bar will display above the active form.  But I don't think
> that is how Dabo works.  So I was hoping someone had developed the class
> that created the dialog, added objects (in this case the dGauge) and a
> means to update the values of dGauge.

Once I took a look at the source for ftplib I realized I could subclass and 
provide my own method with a callback. But my efforts to subclass using 
Dabo's super() did not work and I came up with below.  Could someone provide 
the correct way I should have done it for Dabo.  

class ftplib2(FTP):

        """A subclass of the FTP class that provides a callback for binary 
uploads."""
        def __init__(self, host="", user="", passwd="", acct=""):
                FTP.__init__(self,host,user,passwd,acct)
-- 
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]

Reply via email to