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

def gaduhistory-0.4+1::lib::gui::menu::MenuView::fill (   self )
fill(self) -> None
Fill the bottom window with data.

Definition at line 95 of file menu.py.

                  :
        """fill(self) -> None
        Fill the bottom window with data.
        """
        (w_maxy,w_maxx) = self.getmaxyx()
        (s_maxy,s_maxx) = get_stdscr().getmaxyx()
        if w_maxy >= s_maxy:
            maxy = w_maxy
        else:
            maxy = s_maxy
        maxx = s_maxx
        self._main = curses.newpad( maxy, maxx )
        loop = -1
        for obj in self._list:
            loop += 1
            if loop == self._number:
                flags = curses.color_pair(Colors.hover)
            else:
                flags = curses.color_pair(Colors.normal)
            self._main.addstr( loop, 0, self.text(obj), flags )
        loop += 1
        if loop == self._number:
            flags = curses.color_pair(Colors.hover)
        else:
            flags = curses.color_pair(Colors.normal)
        self._main.addstr( loop, 0, self._exit_txt, flags )


Generated by  Doxygen 1.6.0   Back to index