def __init__(self, a, store, item): GenericSelector.__init__(self, a, store) self._item = item self._amdlg = AmountDialog(self.app, _(u"no. %s of %s") % (self._item.serial, self._item.project.name), _(u"How many parts are required?"), 0) self._item_editor = ItemEditor(a, store, item = item)
def header(self, args = None): return self._project_editor.header() + \ self._project_editor.rows() + \ [urwid.Divider(" ")] + \ GenericSelector.header(self, args)
def __init__(self, a, store, project): GenericSelector.__init__(self, a, store) self._project = project self._project_editor = ProjectEditor(a, store, item = project)
def __init__(self, a, store): GenericSelector.__init__(self, a, store)