diff frontends/src/primitivus/progress.py @ 1367:f71a0fc26886

merged branch frontends_multi_profiles
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2015 10:52:28 +0100
parents e3a9ea76de35
children 069ad98b360d
line wrap: on
line diff
--- a/frontends/src/primitivus/progress.py	Thu Feb 05 11:59:26 2015 +0100
+++ b/frontends/src/primitivus/progress.py	Wed Mar 18 10:52:28 2015 +0100
@@ -20,11 +20,15 @@
 from sat.core.i18n import _
 import urwid
 from urwid_satext import sat_widgets
+from sat_frontends.quick_frontend import quick_widgets
 
 
-class Progress(urwid.WidgetWrap):
+class Progress(urwid.WidgetWrap, quick_widgets.QuickWidget):
+    PROFILES_ALLOW_NONE = True
 
-    def __init__(self, host):
+    def __init__(self, host, target, profiles):
+        assert target is None and profiles is None
+        quick_widgets.QuickWidget.__init__(self, host, target)
         self.host = host
         self.progress_list = urwid.SimpleListWalker([])
         self.progress_dict = {}