(self, amount)
Scroll up or down by an amount of lines
Scroll up or down by an amount of lines
Scroll up or down by an amount of lines
def scroll_by(self, amount):
        """Scroll up or down by an amount of lines"""
        adjustment = self.vte.get_vadjustment()
        bottom = adjustment.get_upper() - adjustment.get_page_size()
        value = adjustment.get_value() + amount
        adjustment.set_value(min(value, bottom))
def scroll_by ( self , amount ) : adjustment = self . vte . get_vadjustment ( ) bottom = adjustment . get_upper ( ) - adjustment . get_page_size ( ) value = adjustment . get_value ( ) + amount adjustment . set_value ( min ( value , bottom ) )