()
| 22 | import sys |
| 23 | |
| 24 | def 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 |