-
Notifications
You must be signed in to change notification settings - Fork 2
/
control_run.py
37 lines (27 loc) · 1.01 KB
/
control_run.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
from PyQt5.QtCore import pyqtSignal, QPoint, QSize, Qt
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import (QApplication, QHBoxLayout, QOpenGLWidget, QSlider,
QWidget)
import sys
from state_machine.StateMachine import StateMachine
from Windows.StateMenu import StateMenuController
class Window(QWidget):
def __init__(self):
super(Window, self).__init__()
# directory = 'examples/0520nm'
directory = 'examples/0200nm'
# directory = 'examples/mumax_regions'
# directory = 'examples/6000uA.out'
self.glWidget = StateMachine(
{'current_state': 0, 'directory': directory}, self)
mainLayout = QHBoxLayout()
mainLayout.addWidget(self.glWidget)
self.setLayout(mainLayout)
self.setWindowTitle("State Machine GL")
# self.subwindow.show()
if __name__ == "__main__":
app = QApplication(sys.argv)
window = Window()
window.resize(1200, 800)
window.show()
sys.exit(app.exec_())