It looks like you're new here. If you want to get involved, click one of these buttons!
I am now developing a python plugin upon klayout, but for the following code:
import pya main_window = pya.MainWindow.instance() print(main_window.__class__)
sometimes it will print class 'pya.PluginRoot'.
and if I stop the program and run it again, sometimes it will get the correct result. e.g. class 'pya.MainWindow'.
I don't know why. I get the code from master branch in git about one month ago.
And I also download the klayout-0.25.5 from this website and build it. But the result is same.