5656 QFrame ,
5757 QSplitter ,
5858 QTabWidget ,
59+ QSizePolicy ,
5960)
6061from PySide6 .QtGui import QIcon , QAction , QFont , QPixmap
6162
@@ -104,7 +105,9 @@ def __init__(
104105
105106 # Configuration de la fenêtre
106107 self .setWindowTitle ("Engines Standalone - PyCompiler ARK++" )
107- self .resize (900 , 700 )
108+ self .resize (1400 , 1000 )
109+ self .setMinimumSize (1000 , 700 )
110+ self .showMaximized () # Start maximized for better usability
108111
109112 # Chargement des icônes
110113 self ._load_icons ()
@@ -183,9 +186,11 @@ def _setup_ui(self):
183186 config_widget = QWidget ()
184187 config_layout = QGridLayout (config_widget )
185188 config_layout .setSpacing (15 )
189+ config_layout .setColumnStretch (0 , 1 )
186190
187191 # === Section Moteur (Tabs) ===
188192 engine_group = QGroupBox ("Engine Configuration" )
193+ engine_group .setSizePolicy (QSizePolicy .Policy .Expanding , QSizePolicy .Policy .Preferred )
189194 engine_layout = QVBoxLayout ()
190195
191196 # Ajout du QTabWidget pour les moteurs (comme dans l'application principale)
@@ -209,14 +214,17 @@ def _setup_ui(self):
209214
210215 # === Section Fichier ===
211216 file_group = QGroupBox ("File / Project Configuration" )
217+ file_group .setSizePolicy (QSizePolicy .Policy .Expanding , QSizePolicy .Policy .Preferred )
212218 file_layout = QGridLayout ()
213219
214220 file_label = QLabel ("File to compile:" )
215221 file_layout .addWidget (file_label , 0 , 0 )
216222
217223 self .file_path_edit = QLineEdit ()
218224 self .file_path_edit .setPlaceholderText ("Select a Python file to compile..." )
225+ self .file_path_edit .setSizePolicy (QSizePolicy .Policy .Expanding , QSizePolicy .Policy .Fixed )
219226 file_layout .addWidget (self .file_path_edit , 0 , 1 )
227+ file_layout .setColumnStretch (1 , 1 )
220228
221229 browse_btn = QPushButton ("Browse" )
222230 browse_btn .clicked .connect (self ._browse_file )
@@ -227,6 +235,7 @@ def _setup_ui(self):
227235
228236 # === Section Workspace ===
229237 workspace_group = QGroupBox ("Workspace" )
238+ workspace_group .setSizePolicy (QSizePolicy .Policy .Expanding , QSizePolicy .Policy .Preferred )
230239 workspace_layout = QGridLayout ()
231240
232241 workspace_label = QLabel ("Workspace:" )
@@ -235,7 +244,9 @@ def _setup_ui(self):
235244 self .workspace_edit = QLineEdit ()
236245 if self .workspace_dir :
237246 self .workspace_edit .setText (self .workspace_dir )
247+ self .workspace_edit .setSizePolicy (QSizePolicy .Policy .Expanding , QSizePolicy .Policy .Fixed )
238248 workspace_layout .addWidget (self .workspace_edit , 0 , 1 )
249+ workspace_layout .setColumnStretch (1 , 1 )
239250
240251 workspace_browse_btn = QPushButton ("Browse" )
241252 workspace_browse_btn .clicked .connect (self ._browse_workspace )
@@ -323,7 +334,7 @@ def _setup_ui(self):
323334 content_splitter .addWidget (log_group )
324335
325336 # Définir les proportions du splitter
326- content_splitter .setSizes ([300 , 80 , 300 ])
337+ content_splitter .setSizes ([700 , 80 , 400 ])
327338
328339 # === Barre de statut ===
329340 self .statusBar = QStatusBar ()
0 commit comments