Ask coding questions

← Back to all posts
right click not working
apraveena (2)

Hi, I am trying to change the color of turtle on left mouse click and stamp on right mouse click.. looks like both left and mouse clicks are taken as left click in replit (I tried in another desktop IDE, it works fine there)

Please help!!

Comments
hotnewtop
ch1ck3n (1632)

Can you add a link to the repl please

apraveena (2)

Hi, Here is the repl link
https://replit.com/@apraveena/temp2#main.py
onscreenclick works for left click, but when I try for right click, it still triggers the left click.. So, the parameter value 1 or 3 doesn't seem to have an effect.

Thanks in advance