Exemplo n.º 1
0
 def __init__(self, url, path):
     VBox.__init__(self)
     self.label = Label(path)
     self.label.show()
     self.pack_start(self.label, FALSE, FALSE, 0)
     self.pbar = ProgressBar()
     self.pack_end(self.pbar, FALSE, FALSE, 0)
     self.pbar.show()
     self.show()
     self._done = 0
     #self.thread = DownloadThread(url, path, self.progress)
     self.thread = DownloadThread(url, path, self.progress)
     #self.button = Button('start')
     #self.button.connect('clicked', self.start)
     #self.button.show()
     #self.pack_end(self.button, FALSE, FALSE, 0)
     self._started = False