Files
aostats-custom/gui/meter.py
T
Wiktor Mazur 1201355553 GUI split
2019-09-11 21:56:23 +02:00

40 lines
745 B
Python

import sys
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication
import libmeter
from main import MainWidget
from engine import initialize
if __name__ == "__main__":
initialize()
WIDTH = 256
HEIGHT = 200
app = QApplication(sys.argv)
app.setStyleSheet("""
QWidget{
font-size: 10px;
}
""")
geometry = app.screens()[0].size()
widget = MainWidget()
widget.setWindowOpacity(0.5)
widget.resize(WIDTH, HEIGHT)
widget.move(0, geometry.height() - HEIGHT - 280)
widget.setWindowTitle('Damage Meter')
widget.setWindowFlag(Qt.WindowStaysOnTopHint)
widget.setWindowFlag(Qt.FramelessWindowHint)
widget.show()
sys.exit(app.exec_())