ajout bouton close
This commit is contained in:
parent
17d2ce8a0a
commit
1b2b9d9eef
@ -55,6 +55,8 @@ class BlockStackApp(QWidget):
|
|||||||
else:
|
else:
|
||||||
self.showMaximized()
|
self.showMaximized()
|
||||||
|
|
||||||
|
self.add_bottom_block()
|
||||||
|
|
||||||
def check_usb_devices(self):
|
def check_usb_devices(self):
|
||||||
bench_list = []
|
bench_list = []
|
||||||
|
|
||||||
@ -120,6 +122,20 @@ class BlockStackApp(QWidget):
|
|||||||
return None
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user