(self, event)
return
Handle mouse wheel scroll for windows
Handle mouse wheel scroll for windows
Handle mouse wheel scroll for windows
def mouse_wheel(self, event):
        """Handle mouse wheel scroll for windows"""

        if event.num == 5 or event.delta == -120:
            event.widget.yview_scroll(1, UNITS)
            self.tablerowheader.yview_scroll(1, UNITS)
        if event.num == 4 or event.delta == 120:
            if self.canvasy(0) < 0:
                return
            event.widget.yview_scroll(-1, UNITS)
            self.tablerowheader.yview_scroll(-1, UNITS)
        self.redrawVisible()
        return
def mouse_wheel ( self , event ) : if event . num == 5 or event . delta == - 120 : event . widget . yview_scroll ( 1 , UNITS ) self . tablerowheader . yview_scroll ( 1 , UNITS ) if event . num == 4 or event . delta == 120 : if self . canvasy ( 0 ) < 0 : return event . widget . yview_scroll ( - 1 , UNITS ) self . tablerowheader . yview_scroll ( - 1 , UNITS ) self . redrawVisible ( ) return