Start rewriting backend with pyotherside+asyncio

This commit is contained in:
miruka
2019-06-27 02:31:03 -04:00
parent f530f51937
commit 3344debbbf
128 changed files with 715 additions and 2941 deletions

44
src/qml/Window.qml Normal file
View File

@@ -0,0 +1,44 @@
import QtQuick 2.7
import QtQuick.Controls 2.2
ApplicationWindow {
id: window
width: 640
height: 480
visible: true
color: "black"
title: "Test"
property bool debug: false
property bool ready: false
Component.onCompleted: {
Qt.application.name = "harmonyqml"
Qt.application.displayName = "Harmony QML"
Qt.application.version = "0.1.0"
window.ready = true
}
Python {
id: py
}
LoadingScreen {
id: loadingScreen
anchors.fill: parent
visible: uiLoader.scale < 1
}
Loader {
id: uiLoader
anchors.fill: parent
property bool ready: window.ready && py.ready
scale: uiLoader.ready ? 1 : 0.5
source: uiLoader.ready ? "UI.qml" : ""
Behavior on scale {
NumberAnimation { duration: 100 }
}
}
}