Beispiel #1
0
    def transferProgressHook(curbytes, total):
        tld.widget.buffer[tld.bufptr] = 'Progress: %s/%s' % \
        (orm.format_number(curbytes),
         orm.format_number(total))

        tld.widget.updateWin()
Beispiel #2
0
 def transferProgressHook(self, curbytes, total):
     self.buffer[self.bufptr] = "Hello"
     self.buffer[self.bufptr] = "Progress: %s/%s" % (orm.format_number(curbytes), orm.format_number(total))
     self.updateWin()