(self, event, *args)
return 'break'
Handle scrollbar.
Handle scrollbar.
Handle scrollbar .
def handle_yview(self, event, *args):
        "Handle scrollbar."
        if event == 'moveto':
            fraction = float(args[0])
            lines = (round(self.getlineno('end') * fraction) -
                     self.getlineno('@0,0'))
            event = 'scroll'
            args = (lines, 'units')
        self.text.yview(event, *args)
        return 'break'
def handle_yview ( self , event , * args ) : if event == 'moveto' : fraction = float ( args [ 0 ] ) lines = ( round ( self . getlineno ( 'end' ) * fraction ) - self . getlineno ( '@0,0' ) ) event = 'scroll' args = ( lines , 'units' ) self . text . yview ( event , * args ) return 'break'