klayout icon indicating copy to clipboard operation
klayout copied to clipboard

pya.Application.instance().main_window().menu().insert_menu -- change in behaviour?

Open lukasc-ubc opened this issue 4 months ago • 5 comments

Hi Matthias,

I notice that the custom menu I added doesn't show up in the display in the newer version. Is this an intentional change, and is there a way to have it appear like it did in the 0.29.1, as per below?

KLayout 0.29.1 menu bar: image

KLayout 0.29.6 menu bar: image

This is implemented using:

pya.Application.instance().main_window().menu().insert_menu("help_menu", "siepic_menu", "SiEPIC 0.5.13 Py3")

I checked the documentation and couldn't find anything suggesting this should not be possible: https://www.klayout.de/doc-qt5/code/class_AbstractMenu.html

Could it be this change? https://github.com/KLayout/klayout/commit/11139cd4da6045235e91b6c1ecc479cbbc46a39a

thank you

lukasc-ubc avatar Oct 17 '24 18:10 lukasc-ubc