We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Updated BcaslStandaloneGui from QWidget to QMainWindow
1 parent 21e0c6f commit 5c76d8dCopy full SHA for 5c76d8d
1 file changed
OnlyMod/BcaslOnlyMod/gui.py
@@ -38,6 +38,7 @@
38
from PySide6.QtWidgets import (
39
QApplication,
40
QWidget,
41
+ QMainWindow,
42
QVBoxLayout,
43
QHBoxLayout,
44
QGridLayout,
@@ -170,7 +171,7 @@ def run(self):
170
171
self.error.emit(str(e))
172
173
-class BcaslStandaloneGui(QWidget):
174
+class BcaslStandaloneGui(QMainWindow):
175
"""
176
Interface graphique principale pour gérer les plugins BCASL.
177
@@ -253,11 +254,7 @@ def _setup_ui(self):
253
254
"""Configure l'interface utilisateur."""
255
# Widget central
256
central_widget = QWidget()
- (
257
- self.setCentralWidget(central_widget)
258
- if hasattr(self, "setCentralWidget")
259
- else None
260
- )
+ self.setCentralWidget(central_widget)
261
262
# Layout principal
263
main_layout = QVBoxLayout(central_widget)
0 commit comments