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
+3 -6
View File
@@ -1,4 +1,5 @@
import sys import sys
import os
from PySide2.QtCore import Qt from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication from PySide2.QtWidgets import QApplication
@@ -16,12 +17,8 @@ if __name__ == "__main__":
app = QApplication(sys.argv) app = QApplication(sys.argv)
app.setStyleSheet(""" with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'style.css')) as css:
QWidget{ app.setStyleSheet(css.read())
font-size: 10px;
}
""")
geometry = app.screens()[0].size() geometry = app.screens()[0].size()
+3
View File
@@ -0,0 +1,3 @@
QWidget{
font-size: 10px;
}