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):
import pya
app = pya.Application.instance()
app.set_config('current-ruler-template', '7')
Next configuration is problematic (Ruler is text and selected item in menu, but actual annotation is box, choosing Box from menu leave both Ruler and Box checked in menu):
import pya
app = pya.Application.instance()
app.set_config('current-ruler-template', '7')
app.commit_config()
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 (
Boxis title under icon and tool button menu items switched properly):Next configuration is problematic (
Ruleris text and selected item in menu, but actual annotation is box, choosingBoxfrom menu leave bothRulerandBoxchecked in menu):