-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgui.py
More file actions
31 lines (25 loc) · 743 Bytes
/
gui.py
File metadata and controls
31 lines (25 loc) · 743 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
from stdata import *
from stgraphs import *
from PyQt6.QtWidgets import *
import sys
# Definition of PyQt App, Layout and Window
app = QApplication(sys.argv)
class MainWin(QMainWindow):
def __init__(self):
super().__init__()
self.button = QPushButton('Top')
self.button.clicked.connect(self.show_new_window)
self.setCentralWidget(self.button)
def show_new_window(self, checked):
self.w = SkillWin()
self.w.show()
class SkillWin(QWidget):
def __init__(self):
super().__init__()
layout = QVBoxLayout()
label = QLabel(str(SkillData().get_ease()))
layout.addWidget(label)
self.setLayout(layout)
mainWin = MainWin()
mainWin.show()
app.exec()