-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
39 lines (27 loc) · 916 Bytes
/
main.py
File metadata and controls
39 lines (27 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""Main module for the teaching aid for watercolour painting application.
This program analyses a user provided image to provide information
about how to recreate the image in question as a watercolour painting.
This includes elements such as colour, saturation, detail and shape.
"""
import sys
from PyQt6.QtWidgets import QApplication
from ui.main_window_ui import MainWindow
def main():
"""
Main method for the app, creates the main application, window object and applies the stylesheet
Args:
None
Returns:
None
"""
app = QApplication(sys.argv)
# open qss stylesheet
with open("ui/style/global_style.qss", "r", encoding="utf-8") as file:
style_sheet = file.read()
# apply qss stylesheet
app.setStyleSheet(style_sheet)
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()