

def get_scroll_info(event):
    '\n    Returns the (degrees, direction) of a scroll motion Gtk event.\n    '
    direction = None
    if (event.direction == gtk.gdk.SCROLL_UP):
        direction = 0.0
    elif (event.direction == gtk.gdk.SCROLL_DOWN):
        direction = 180.0
    elif (event.direction == gtk.gdk.SCROLL_LEFT):
        direction = 270.0
    elif (event.direction == gtk.gdk.SCROLL_RIGHT):
        direction = 90.0
    degrees = 15.0
    return (degrees, direction)

dataset/ETHPy150Open ejeschke/ginga/ginga/gtkw/GtkHelp.py get_scroll_info/original