(self)
scroll adjusting
scroll adjusting
scroll adjusting
def adjust(self):
        """ scroll adjusting
        """
        self.horizontalScrollBar().setRange(
            0,
            self.number_of_chars() - self.visible_columns() + 1)
        self.horizontalScrollBar().setPageStep(self.visible_columns())
        self.verticalScrollBar().setRange(
            0,
            self.number_of_lines() - self.visible_lines() + 2)
        self.verticalScrollBar().setPageStep(self.visible_lines())
def adjust ( self ) : self . horizontalScrollBar ( ) . setRange ( 0 , self . number_of_chars ( ) - self . visible_columns ( ) + 1 ) self . horizontalScrollBar ( ) . setPageStep ( self . visible_columns ( ) ) self . verticalScrollBar ( ) . setRange ( 0 , self . number_of_lines ( ) - self . visible_lines ( ) + 2 ) self . verticalScrollBar ( ) . setPageStep ( self . visible_lines ( ) )