ajout bouton close

This commit is contained in:
Jonathan Roth 2025-04-14 13:09:53 +02:00
parent 17d2ce8a0a
commit 1b2b9d9eef

View File

@ -54,6 +54,8 @@ class BlockStackApp(QWidget):
self.showFullScreen()
else:
self.showMaximized()
self.add_bottom_block()
def check_usb_devices(self):
bench_list = []
@ -120,6 +122,20 @@ class BlockStackApp(QWidget):
return None
def add_bottom_block(self):
# Create a new block for the bottom section
bottom_block_widget = QWidget()
bottom_block_layout = QHBoxLayout()
bottom_block_layout.setAlignment(Qt.AlignRight)
# Add a close button
btn_close = QPushButton("Close")
btn_close.clicked.connect(self.close)
bottom_block_layout.addWidget(btn_close)
bottom_block_widget.setLayout(bottom_block_layout)
self.layout.addWidget(bottom_block_widget)