Separate css file for GUI

This commit is contained in:
Wiktor Mazur
2019-09-12 09:45:05 +02:00
parent 758141f7f5
commit be78e362db
2 changed files with 7 additions and 7 deletions
+4 -7
View File
@@ -1,4 +1,5 @@
import sys
import os
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication
@@ -10,18 +11,14 @@ from engine import initialize
if __name__ == "__main__":
initialize()
WIDTH = 256
HEIGHT = 200
app = QApplication(sys.argv)
app.setStyleSheet("""
QWidget{
font-size: 10px;
}
""")
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'style.css')) as css:
app.setStyleSheet(css.read())
geometry = app.screens()[0].size()
+3
View File
@@ -0,0 +1,3 @@
QWidget{
font-size: 10px;
}