Skip to content

Commit 5c76d8d

Browse files
committed
Updated BcaslStandaloneGui from QWidget to QMainWindow
1 parent 21e0c6f commit 5c76d8d

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

OnlyMod/BcaslOnlyMod/gui.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from PySide6.QtWidgets import (
3939
QApplication,
4040
QWidget,
41+
QMainWindow,
4142
QVBoxLayout,
4243
QHBoxLayout,
4344
QGridLayout,
@@ -170,7 +171,7 @@ def run(self):
170171
self.error.emit(str(e))
171172

172173

173-
class BcaslStandaloneGui(QWidget):
174+
class BcaslStandaloneGui(QMainWindow):
174175
"""
175176
Interface graphique principale pour gérer les plugins BCASL.
176177
@@ -253,11 +254,7 @@ def _setup_ui(self):
253254
"""Configure l'interface utilisateur."""
254255
# Widget central
255256
central_widget = QWidget()
256-
(
257-
self.setCentralWidget(central_widget)
258-
if hasattr(self, "setCentralWidget")
259-
else None
260-
)
257+
self.setCentralWidget(central_widget)
261258

262259
# Layout principal
263260
main_layout = QVBoxLayout(central_widget)

0 commit comments

Comments
 (0)