From 48c78884cac8b2b7ef863482ca3dba468fee4e20 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 22 Dec 2010 05:23:14 +0000 Subject: Apply sugar-lint fixes; add HACKING file; make it useful under sweets --- (limited to 'ProgressDialog.py') diff --git a/ProgressDialog.py b/ProgressDialog.py index bf92502..a46bae3 100644 --- a/ProgressDialog.py +++ b/ProgressDialog.py @@ -1,7 +1,9 @@ import gtk from gettext import gettext as _ + class ProgressDialog(gtk.Dialog): + def __init__(self, parent): gtk.Dialog.__init__(self, _('Downloading...'), parent, \ gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, \ @@ -20,7 +22,6 @@ class ProgressDialog(gtk.Dialog): self._activity.close() else: pass - + def set_fraction(self, fraction): self._pb.set_fraction(fraction) - -- cgit v0.9.1