I'm tring to program a simple zoom in and zoom out program using a canvas on tkinter, I've done most of the work, but I was stopped by an issue: when binding the event using master.bind(<Control-MouseWheel>, func)
I can't handle differently the mouse wheel forward event and backward event. Is there any solution?
P.S. When binding an event, I was forced to use master.bind(<Control-MouseWheel>, lambda func: "other code")
, otherwise when the program ran, the event-binded function was instantaneously executed, any solution for this other problem?