I would like to mention that mouse_button_pressed_event function does not work in the classic "OnMouseClick" example (example1, example2), unless I do something wrong myself.
There was an issue with overloading of methods in Python which was fixed in the latest version 0.26 (ticket #197). Did you try with this one?
There is a caveat however: when you run this script the first time, the code will only act on newly opened views. That's because plugin registration does not affect existing views. On the second run, the plugin is just updated and code changes are effective immediately.
Comments
Hi Chris,
I tried with https://www.klayout.de/forum/discussion/1227/postprocessing-nettracer#latest (example2) and I can't confirm it's not working.
There was an issue with overloading of methods in Python which was fixed in the latest version 0.26 (ticket #197). Did you try with this one?
There is a caveat however: when you run this script the first time, the code will only act on newly opened views. That's because plugin registration does not affect existing views. On the second run, the plugin is just updated and code changes are effective immediately.
Regards,
Matthias
Hi Matthias,
I'm still using 0.25.9, didn't had the chance to update yet. I will try 0.26 and I' ll come back to this thread if necessary.
Thanks Matthias,
Chris