-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing ruler/annotation from script weirdly interferes with pya.Application.commit_config #1522
Comments
Hi Eugene, I tried on Ubuntu, but I could not reproduce the behavior you report. Or maybe I just don't understand. I will try on Windows myself. But if that problem is OS specific, maybe calling "app.process_events()" before "app.commit_config()" helps. Matthias |
Hi, Matthias! I tried to insert KLayout is built of RHEL 6 and run on Rocky Linux 8. Qt version is 5.14.2. It may be useful to log configuration settings changes with some |
I think the log will not tell a lot. Maybe we can clarify what I did to (not) reproduce the problem on Ubuntu 22.04:
Effect: the ruler switches to box mode. I can now start drawing a ruler and it becomes a box: The menu is intact and I can switch to Ruler mode without issues. What am I doing wrong? Matthias |
Hi, Matthias! I'll try to dig deeper on my side, but it'll take some time. |
Hi, Matthias! I added debug prints after Log for good configuration:
Log for bad configuration:
Looks like templates are not initialized properly before Python configuration script is executed. |
Hi Eugene, I did not pay attention to the "-nc" in your description. When I add that, I can reproduce the issue. I'll try to fix it. Thanks, Matthias |
…rferes with pya.Application.commit_config)
Hi, Matthias! Thank you for help! |
We change default ruler/annotation from configuration script. But somehow calling
pya.Application.commit_config()
after that interfere with GUI appearance.I tried KLayout versions 0.28.9 and 0.28.12 built in-house with Pythin 3.11.
KLayout command line is:
<path>\klayout -nc -rm ./configure.py -u <session path>
Next configuration works fine (
Box
is title under icon and tool button menu items switched properly):Next configuration is problematic (
Ruler
is text and selected item in menu, but actual annotation is box, choosingBox
from menu leave bothRuler
andBox
checked in menu):The text was updated successfully, but these errors were encountered: