Skip to content

Commit

Permalink
Nicer makeatorrentgui
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Jones committed Jun 14, 2010
1 parent 994f0e8 commit b785959
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions makeatorrentgui.py
Expand Up @@ -386,9 +386,6 @@ def __init__(self, parent, file_list, a_list, piece_length):
self.vbox.set_spacing(SPACING)
self.vbox.pack_start(lalign(self.label), expand=False, fill=False)

self.progressbar = gtk.ProgressBar()
self.vbox.pack_start(self.progressbar, expand=False, fill=False)

self.cancelbutton = gtk.Button(stock=gtk.STOCK_CANCEL)
self.cancelbutton.connect('clicked', self.cancel)
self.action_area.pack_end(self.cancelbutton)
Expand All @@ -406,11 +403,10 @@ def cancel(self, widget=None):
self.destroy()

def set_progress_value(self, value):
self.progressbar.set_fraction(value)
self._update_gui()

def set_file(self, filename):
self.label.set_text('building ' + filename + '.atorrent')
self.label.set_text('Building ' + filename + '.atorrent, please wait!..\n')
self._update_gui()

def _update_gui(self):
Expand Down

0 comments on commit b785959

Please sign in to comment.