-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (20 loc) · 669 Bytes
/
main.py
File metadata and controls
28 lines (20 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /usr/local/bin/python3
'''
Drawn from examples:
- PyQt 5.3.2 Reference Quide "Integrating Python and QML"
- PySide wiki
- Qt gallery example
- Qt QML reference guide
-- "Interacting with QML Objects from C++"
'''
import sys
from qtEmbeddedQmlFramework.resourceManager import resourceMgr
from demoPyQtQML.app import createApp
def main():
# establish location of resources (either platform file system or embedded resource file system (.qrc)
resourceMgr.setResourceRoot(fileMainWasLoadedFrom=__file__, appPackageName='demoPyQtQML')
app = createApp()
print("Created app")
# Qt Main loop
sys.exit(app.exec_()) # !!! C exec => Python exec_
main()