Hi everyone
I was wondering how to make a button which tooked action with the right button of the mouse.
Thank you for your time
Hi everyone
I was wondering how to make a button which tooked action with the right button of the mouse.
Thank you for your time
Hi,
This is an old post (referencing FactoryPMI, which became the Vision module), but has some really good info: Right Click and Double Click actions
In short, what you want is:
if event.button == event.BUTTON3:
#do stuff
Regards,
And in case it’s not clear, that’s the script on a “mousePressed” event for the button, configured under “Event Handlers” for the component.
Regards,
thanks a lot!