MCPcopy Create free account
hub / github.com/KLayout/klayout / can_create_layoutview

Function can_create_layoutview

testdata/pymod/import_lay.py:24–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22import sys
23
24def can_create_layoutview():
25 if not "MainWindow" in lay.__dict__:
26 return True # Qt-less
27 elif not "Application" in lay.__dict__:
28 return False # cannot instantiate Application
29 elif lay.__dict__["Application"].instance() is None:
30 return False # Application is not present
31 else:
32 return True
33
34# Tests the basic abilities of the module
35

Callers 1

test_1Method · 0.70

Calls 1

instanceMethod · 0.45

Tested by 1

test_1Method · 0.56