()
| 22 | import sys |
| 23 | |
| 24 | def 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 | |
| 34 | def astr(a): |
| 35 | astr = [] |