Newer
Older
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtWidgets import QApplication
import OTPListModel
import keyring
import json
app = QQmlApplicationEngine()
model = OTPListModel.OPTListModel()
#keyring.set_password("test","boo","yeah")
app.rootContext().setContextProperty("otpListModel", model)
app.load("qml/main.qml")