2019-07-05 22:01:16 +02:00

23 lines
693 B
Python

from PySide2.QtCore import Qt
from PySide2.QtGui import QWindow
from PySide2.QtWidgets import QHBoxLayout, QLabel, QWidget
from theater import ControlPoint
class QBaseMenu(QWidget):
def __init__(self, parent, controlPoint: ControlPoint):
super(QBaseMenu, self).__init__(parent)
self.cp = controlPoint
self.setWindowFlags(Qt.WindowStaysOnTopHint)
self.initUi()
def initUi(self):
layout = QHBoxLayout()
layout.addWidget(QLabel("TODO : This will be the base menu"))
layout.addWidget(QLabel(self.cp.name + " Base Info"))
central_widget = QWidget()
central_widget.setLayout(layout)
self.setLayout(layout)