Added more gui widgets

This commit is contained in:
jpk 2020-01-19 17:08:43 +01:00
parent 0863a44e5c
commit 714bf2892d
2 changed files with 25 additions and 6 deletions

1
.python-version Normal file
View File

@ -0,0 +1 @@
py3um24c

View File

@ -1,7 +1,8 @@
#!/usr/bin/env python
import sys
from PyQt5.QtWidgets import (
QApplication, QWidget, QMainWindow, QLabel, QFrame, QComboBox, QPushButton
QApplication, QWidget, QMainWindow, QLabel, QFrame, QComboBox, QPushButton,
QButtonGroup, QRadioButton
)
import PyQt5.QtGui as QtGui
import pyqtgraph as pg
@ -24,7 +25,7 @@ class UM24Lab(QMainWindow):
+---------+-----------------------+
|(1) |(3) |
| (1.1) | |
| | PLOTS |
| (1.2) | PLOTS |
| | |
+---------+ |
|(2) +------+------+---------+
@ -57,10 +58,27 @@ class UM24Lab(QMainWindow):
layout.addWidget(self.btnDeviceConnect)
centralLayout.addWidget(deviceWidget)
# TODO: Status current page
# TODO: Rotate Screen
# TODO: Next Page
# TODO: Screen Brightness
# (1.2) Screen Control
screenWidget = QWidget()
layout = QtGui.QGridLayout()
screenWidget.setLayout(layout)
self.screenIndicator = QWidget()
screenManagementButtons = QButtonGroup()
group = QWidget()
groupLayout = QtGui.QHBoxLayout()
group.setLayout(groupLayout)
for i in range(7):
btn = QRadioButton()
screenManagementButtons.addButton(btn)
groupLayout.addWidget(btn)
layout.addWidget(group, 0, 0, 0, 1)
# TODO: Select initial screen
self.btnRotateScreen = QPushButton('Rotate')
layout.addWidget(self.btnRotateScreen, 1, 0)
self.btnNextPage = QPushButton('Next')
layout.addWidget(self.btnNextPage, 1, 1,)
centralLayout.addWidget(screenWidget)
# TODO: Screen Timeout
# (2) Group Memory