-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindow.py
50 lines (40 loc) · 1018 Bytes
/
Window.py
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
40
41
42
43
44
45
46
47
48
49
50
import sys
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import (
QApplication, QMainWindow
)
from ChoiceView import ChoiceView
class Startup(QMainWindow):
"""
Main window for the application.
"""
def __init__(self):
"""
Initialize the Startup window.
"""
super().__init__()
self.prev_view = None
self.central_widget = None
self.setWindowTitle("Z3 Path Solver")
self.initUI()
def initUI(self):
"""
Initialize the user interface.
"""
self.setAutoFillBackground(True)
p = self.palette()
p.setColor(self.backgroundRole(), QColor(186, 228, 229))
self.setPalette(p)
choiceView = ChoiceView(self)
self.setCentralWidget(choiceView)
# Startup
def main():
"""
Main entry point of the application.
"""
app = QApplication(sys.argv)
window = Startup()
window.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()