Skip to content

MainWindow/PluginRoot classes mixed #191

Closed
@klayoutmatthias

Description

@klayoutmatthias

As internally KLayout internally identifies MainWindow with PluginRoot, but does not expose this identity as an implementation detail, the Python class mapping is getting messed up.

One symptom is the result of

pya.PluginRoot.instance()

which is a MainWindow object, but does not implementat the PluginRoot object. The other way has been reported too: "pya.MainWindow.instance()" apparently returns a "PluginRoot" object as well (https://www.klayout.de/forum/discussion/1140/the-return-type-of-pya-mainwindow-instance-is-sometimes-wrong#latest).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions