It looks like you're new here. If you want to get involved, click one of these buttons!
Hi there!
I am currently trying to write some python UI module, basically using a bunch of checkboxes for the DRC file that you wanna execute, and once you checked the check box then you press a button, it will start to execute the bunch of DRC file. \
I wonder what the API call for running the DRC file in the python module.
Thank you very much
Andy
Comments
nvm I think I find what I was looking for
https://www.klayout.de/doc-qt5/code/class_Macro.html#method44
Yes, exactly. This is your friend
Matthias
That's all the way to the bottom of the turtle-pond, yep.
Turtles, turtles, turtles.
Please post your work once you get it solved so the
less (or not at all) clueful among us, can get some
traction.
yes here is some stack overflow level sample code for people who just getting started
pya.Macro(i).run is the key to it
also here is something interesting how to pass a variable to the macro that you wanna run
here is the code inside output_prompt.py
and the output is 50