(self)
return num_lines + 1
returns number of lines that fits viewport
returns number of lines that fits viewport
returns number of lines that fits viewport
def visible_lines(self):
        """ returns number of lines that fits viewport
        """
        height = self.viewport().height()
        num_lines = int(ceil(height / self._char_height))
        return num_lines + 1
def visible_lines ( self ) : height = self . viewport ( ) . height ( ) num_lines = int ( ceil ( height / self . _char_height ) ) return num_lines + 1