예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
 def _widgetonunshow(self):
     ListBrowserBase._widgetonunshow(self)
     self._widgetprocessa("dlg_statusbar_pop")
예제 #5
0
 def _widgetonshow(self):
     ListBrowserBase._widgetonshow(self)
     self._widgetprocessa("dlg_statusbar_put", "Selecione o Cliente Para a Nova OS", self)
예제 #6
0
 def __init__(self, params):
     self.footer_text = conf.footer_frmListContatos2
     ListBrowserBase.__init__(self, params)
예제 #7
0
 def _widgetonshow(self):
     ListBrowserBase._widgetonshow(self)
     self._widgetprocessa('dlg_statusbar_put', "Lista de OSs", self)