def __init__(self, params): # self.footer_text = '' ListBrowserBase.__init__(self, params) self.headerlist = urwid.Pile([ urwid.AttrWrap(self.header, 'head'), urwid.AttrWrap(wgtGridRow_oslist.getHeader(), 'head') ]) self.rowheight = 3 self.view.set_header(self.headerlist)
def unhandled_input(self, k): if k == "enter": x = self.getTid() if x: self.r = dlger.ok self._widgetsession.UnShowWidget() return True return ListBrowserBase.unhandled_input(self, k)
def unhandled_input(self, k): if k == "f2": self._widgetprocessa( conf.cmds.dlg_frmlistcontatos_add, {"nome": self.search, "callback": self.callback_acts} ) return k if k == "f4": self._widgetprocessa( conf.cmds.dlg_frmlistcontatos_open, {"id": self.getTid(), "callback": self.callback_acts} ) return "x" if k == "home": # "crtl _" = backspace self.r = nisk.dialogs.dlger.back self._widgetsession.UnShowWidget() return k return ListBrowserBase.unhandled_input(self, k)
def _widgetonunshow(self): ListBrowserBase._widgetonunshow(self) self._widgetprocessa("dlg_statusbar_pop")
def _widgetonshow(self): ListBrowserBase._widgetonshow(self) self._widgetprocessa("dlg_statusbar_put", "Selecione o Cliente Para a Nova OS", self)
def __init__(self, params): self.footer_text = conf.footer_frmListContatos2 ListBrowserBase.__init__(self, params)
def _widgetonshow(self): ListBrowserBase._widgetonshow(self) self._widgetprocessa('dlg_statusbar_put', "Lista de OSs", self)