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

Function can_create_layoutview

testdata/python/layLayers.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 pya.__dict__:
26 return True # Qt-less
27 elif not "Application" in pya.__dict__:
28 return False # cannot instantiate Application
29 elif pya.__dict__["Application"].instance() is None:
30 return False # Application is not present
31 else:
32 return True
33
34def astr(a):
35 astr = []

Callers 6

test_1Method · 0.70
test_1aMethod · 0.70
test_3Method · 0.70
test_4Method · 0.70
test_5Method · 0.70
test_6Method · 0.70

Calls 1

instanceMethod · 0.45

Tested by 6

test_1Method · 0.56
test_1aMethod · 0.56
test_3Method · 0.56
test_4Method · 0.56
test_5Method · 0.56
test_6Method · 0.56