-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
38 lines (26 loc) · 845 Bytes
/
main.py
File metadata and controls
38 lines (26 loc) · 845 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
'''
# @ Author: Daniel Raimundo (DR)
# @ Create Time: 2021-07-09 08:19:31
# @ Modified time: 2021-07-09 08:26:36
# @ Description:
'''
import sys
from view_client import View
from PySide6.QtWidgets import QApplication, QMainWindow, QStyleFactory
class Main:
def __init__(self):
self.app = QApplication(sys.argv)
self.window = Window()
class Window(QMainWindow):
def __init__(self):
super(Window, self).__init__()
self.setGeometry(0,0,724,839)
#self.showMaximized()
self.setWindowTitle("PSD_Viewer")
self.view = View(self)
self.setCentralWidget(self.view)
QApplication.setStyle(QStyleFactory.create('windowsvista'))
self.show()
if __name__ == "__main__":
main = Main()
sys.exit(main.app.exec())