26 lines
832 B
Python
26 lines
832 B
Python
from PyQt6.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QPushButton, QLabel
|
|
from PyQt6.QtCore import Qt
|
|
class ControlPage(QWidget):
|
|
def __init__(self, api_client, parent=None):
|
|
super().__init__(parent)
|
|
self.api_client = api_client
|
|
self.init_ui()
|
|
|
|
def init_ui(self):
|
|
layout = QVBoxLayout()
|
|
label = QLabel("控制页面")
|
|
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
|
layout.addWidget(label)
|
|
|
|
# 添加一些控制按钮
|
|
button_layout = QHBoxLayout()
|
|
start_button = QPushButton("开始打印")
|
|
stop_button = QPushButton("停止打印")
|
|
button_layout.addWidget(start_button)
|
|
button_layout.addWidget(stop_button)
|
|
|
|
layout.addLayout(button_layout)
|
|
|
|
|
|
|
|
self.setLayout(layout) |