app.py 311 Bytes
Newer Older
1 2
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtWidgets import QApplication
3
import OTPListModel
4 5

qapp = QApplication()
6 7
app = QQmlApplicationEngine()
model = OTPListModel.OPTListModel()
8
model.load()
9 10
app.rootContext().setContextProperty("otpListModel", model)
app.load("qml/main.qml")
11
qapp.exec_()