comparison 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
comparison
equal deleted inserted replaced
1295:1e3b1f9ad6e2 1367:f71a0fc26886
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _ 20 from sat.core.i18n import _
21 import urwid 21 import urwid
22 from urwid_satext import sat_widgets 22 from urwid_satext import sat_widgets
23 from sat_frontends.quick_frontend import quick_widgets
23 24
24 25
25 class Progress(urwid.WidgetWrap): 26 class Progress(urwid.WidgetWrap, quick_widgets.QuickWidget):
27 PROFILES_ALLOW_NONE = True
26 28
27 def __init__(self, host): 29 def __init__(self, host, target, profiles):
30 assert target is None and profiles is None
31 quick_widgets.QuickWidget.__init__(self, host, target)
28 self.host = host 32 self.host = host
29 self.progress_list = urwid.SimpleListWalker([]) 33 self.progress_list = urwid.SimpleListWalker([])
30 self.progress_dict = {} 34 self.progress_dict = {}
31 listbox = urwid.ListBox(self.progress_list) 35 listbox = urwid.ListBox(self.progress_list)
32 buttons = [] 36 buttons = []