23 lines
623 B
Python
23 lines
623 B
Python
from PySide6.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QPushButton
|
|
|
|
|
|
def build_dev_screen(on_exit) -> QWidget:
|
|
screen = QWidget()
|
|
layout = QVBoxLayout(screen)
|
|
layout.setContentsMargins(0, 0, 0, 0)
|
|
layout.setSpacing(12)
|
|
|
|
hdr = QHBoxLayout()
|
|
hdr.setContentsMargins(0, 0, 0, 0)
|
|
hdr.setSpacing(12)
|
|
|
|
exit_btn = QPushButton("Переход к рабочему столу")
|
|
exit_btn.setObjectName("DevExitBtn")
|
|
exit_btn.setMinimumHeight(72)
|
|
exit_btn.clicked.connect(on_exit)
|
|
|
|
layout.addLayout(hdr)
|
|
layout.addWidget(exit_btn)
|
|
layout.addStretch(1)
|
|
return screen
|