Skip to content

Changing ruler/annotation from script weirdly interferes with pya.Application.commit_config #1522

@EugeneZelenko

Description

@EugeneZelenko

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions