It looks like you're new here. If you want to get involved, click one of these buttons!
Hello,
I am having difficulties using the Action class in python. Attempting to use the assign function results in an exception:
pya.Application.instance().main_window().menu().action('path to action').assign(pya.Action())
argument 1 (impossible<bad format char>)
I cannot pass the assign function an action object successfully. Is there something I am doing incorrectly? I have also tried with an action that had an on_triggered event and title.
Comments
Hello,
yes, thanks for mentioning this. Apparently something is wrong with the "assign" implementation in Python.
But you can assign each property individually:
Matthias
I have created a ticket at GitHub: https://github.com/klayoutmatthias/klayout/issues/39