def transferProgressHook(curbytes, total): tld.widget.buffer[tld.bufptr] = 'Progress: %s/%s' % \ (orm.format_number(curbytes), orm.format_number(total)) tld.widget.updateWin()
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()