Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ProgressDialog.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2010-12-22 05:23:14 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-12-22 05:23:14 (GMT)
commit48c78884cac8b2b7ef863482ca3dba468fee4e20 (patch)
tree8f1e50addc2672bb1913739aa3bc30082c120774 /ProgressDialog.py
parent80d67125b39ec911eb349c1cab9d23175c226a3e (diff)
Apply sugar-lint fixes; add HACKING file; make it useful under sweets
Diffstat (limited to 'ProgressDialog.py')
-rw-r--r--ProgressDialog.py5
1 files changed, 3 insertions, 2 deletions
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)
-