I have created these two functions :The first increases the extent value of arc and the other decreases it. I tried binding them resp. to <MouseWheel> and <ShiftMouseWheel>. But it doesn't work.
def angle_up(event= None):
global extent
extent += 2
def angle_dn(event= None):
global extent
extent -= 2
Then I bound them to mouse events:
def draw_arc(event=None):
frame.bind('<MouseWheel>',angle_up)
frame.bind('<Shift-MouseWheel>', angle_dn)
Even if I scroll the wheel down the angle_dn function doesn't gets called, instead the angle_up function gets called.
Is there any way to bind mousewheel upwards motion to a separate function and downwards movement of wheel to a separate function?