Jul-31-2023, 07:51 AM
I did consentrate on the arrow up and this solved it:
def pilopp(event): tekst = lblzoomlvl.cget("text") print(tekst) if (int(tekst)<16): # set mouse x,y position mouse.position = (32,53) mouse.click(Button.left,1) tekst = int(tekst) + 1 lblzoomlvl.configure(text=tekst) window.bind("<Up>",pilopp)