Logo Search packages:      
Sourcecode: gaduhistory version File versions  Download package

def gaduhistory-0.4+1::lib::gui::menu::MenuView::__call__ (   self )
__call__(self) -> None
Invocation of the current menu view.

Definition at line 206 of file menu.py.

                      :
        """__call__(self) -> None
        Invocation of the current menu view.
        """
        self.refresh()
        self._running = True
        while self._running:
            # 113 - q
            # 259 - up
            # 258 - down
            # 262 - Home
            # 360 - End
            # 338 - PageDown
            # 339 - PageUp
            # 10 - enter
            self._main.keypad(1)
            self._char = self._main.getch()
            if self.additional_char_handler():
                if self._char == 259:
                    self.go_up()
                elif self._char == 258:
                    self.go_down()
                elif self._char == 10:
                    self.run_item()
                elif self._char == 360:
                    self.go_end()
                elif self._char == 262:
                    self.go_home()
                elif self._char == 113:
                    self._running = False
                elif self._char == 338:
                    self.go_page_down()
                elif self._char == 339:
                    self.go_page_up()
            self.refresh()
            sleep( 0.01)
        self.close()


Generated by  Doxygen 1.6.0   Back to index