import sys
from PyQt6 import QtWidgets
from PyQt6 import QtCore
from PyQt6.QtWidgets import QLineEdit, QComboBox
class Panel(QtWidgets.QWidget):
def __init__(self):
super().__init__()
self.resize(300, 300)
self.setWindowTitle("Панель администратора")
self.main_vertical = QtWidgets.QVBoxLayout()
self.horizontal_layout_1 = QtWidgets.QHBoxLayout()
self.label_navigation = QtWidgets.QLabel("Навигация")
self.label_date = QtWidgets.QLabel("Дата")
self.label_type = QtWidgets.QLabel("Тип")
self.horizontal_layout_1.addWidget(self.label_navigation)
self.horizontal_layout_1.addStretch()
self.horizontal_layout_1.addWidget(self.label_date)
self.horizontal_layout_1.addWidget(self.label_type)
self.main_vertical.addLayout(self.horizontal_layout_1)
self.horizontal_layout_2 = QtWidgets.QHBoxLayout()
self.line_input = QLineEdit("2024-01-15")
self.combo_input = QComboBox()
self.combo_input.addItems(["Все", "Ошибка", "Информация"])
self.horizontal_layout_2.addWidget(self.line_input)
self.horizontal_layout_2.addWidget(self.combo_input)
self.main_vertical.addLayout(self.horizontal_layout_2)
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
window = Panel()
window.show()
sys.exit(app.exec())