@@ -1267,27 +1267,8 @@ async def _fetch_sys():
12671267
12681268 def update_command_preview (self ):
12691269 # Aperçu de commande désactivé: widget label_cmd retiré
1270- # Résumé des options - only check static widgets if they exist
1271- summary = []
1272- if hasattr (self , "opt_onefile" ) and self .opt_onefile is not None and self .opt_onefile .isChecked ():
1273- summary .append ("Onefile" )
1274- if hasattr (self , "opt_windowed" ) and self .opt_windowed is not None and self .opt_windowed .isChecked ():
1275- summary .append ("Windowed" )
1276- if hasattr (self , "opt_noconfirm" ) and self .opt_noconfirm is not None and self .opt_noconfirm .isChecked ():
1277- summary .append ("Noconfirm" )
1278- if hasattr (self , "opt_clean" ) and self .opt_clean is not None and self .opt_clean .isChecked ():
1279- summary .append ("Clean" )
1280- if hasattr (self , "opt_noupx" ) and self .opt_noupx is not None and self .opt_noupx .isChecked ():
1281- summary .append ("NoUPX" )
1282- if hasattr (self , "opt_debug" ) and self .opt_debug is not None and self .opt_debug .isChecked ():
1283- summary .append ("Debug" )
1284- if hasattr (self , "opt_auto_install" ) and self .opt_auto_install is not None and self .opt_auto_install .isChecked ():
1285- summary .append ("Auto-install modules" )
1286- if hasattr (self , "icon_path" ) and self .icon_path :
1287- summary .append ("Icone" )
1288- if hasattr (self , "output_dir_input" ) and self .output_dir_input is not None and self .output_dir_input .text ().strip ():
1289- summary .append (f"Sortie: { self .output_dir_input .text ().strip ()} " )
1290- # Widget options_summary supprimé; plus de mise à jour de résumé visuel
1270+ # Cette méthode est maintenant vide car les options sont gérées dynamiquement par les moteurs
1271+ pass
12911272
12921273 from .Compiler import (
12931274 cancel_all_compilations ,
@@ -1315,7 +1296,6 @@ def set_controls_enabled(self, enabled):
13151296 pass
13161297 self .btn_cancel_all .setEnabled (not enabled )
13171298 self .btn_select_folder .setEnabled (enabled )
1318- self .btn_select_icon .setEnabled (enabled )
13191299 self .btn_select_files .setEnabled (enabled )
13201300 self .btn_remove_file .setEnabled (enabled )
13211301 # Check if buttons exist before calling setEnabled
@@ -1358,36 +1338,21 @@ def set_controls_enabled(self, enabled):
13581338 except Exception :
13591339 pass
13601340 self .venv_button .setEnabled (enabled )
1361- # Enable/disable static output_dir_input if it exists
1362- if hasattr (self , "output_dir_input" ) and self .output_dir_input is not None :
1363- self .output_dir_input .setEnabled (enabled )
1364- # Désactive toutes les cases à cocher d'options (only if they exist)
1365- checkbox_list = []
1366- for name in ["opt_onefile" , "opt_windowed" , "opt_noconfirm" , "opt_clean" ,
1367- "opt_noupx" , "opt_main_only" , "opt_debug" , "opt_auto_install" ,
1368- "opt_silent_errors" ]:
1369- if hasattr (self , name ) and getattr (self , name ) is not None :
1370- checkbox_list .append (getattr (self , name ))
1371- for checkbox in checkbox_list :
1372- checkbox .setEnabled (enabled )
13731341 # Rafraîchir visuellement l'état grisé de tous les contrôles sensibles
13741342 try :
13751343 grey_targets = [
13761344 getattr (self , "btn_build_all" , None ),
13771345 getattr (self , "btn_select_folder" , None ),
1378- getattr (self , "btn_select_icon" , None ),
13791346 getattr (self , "btn_select_files" , None ),
13801347 getattr (self , "btn_remove_file" , None ),
13811348 getattr (self , "btn_export_config" , None ),
13821349 getattr (self , "btn_import_config" , None ),
13831350 getattr (self , "btn_api_loader" , None ),
1384- None ,
13851351 getattr (self , "btn_suggest_deps" , None ),
13861352 getattr (self , "select_lang" , None ),
13871353 getattr (self , "select_theme" , None ),
13881354 getattr (self , "btn_show_stats" , None ),
13891355 getattr (self , "venv_button" , None ),
1390- getattr (self , "output_dir_input" , None ),
13911356 ]
13921357 for w in grey_targets :
13931358 try :
@@ -1407,7 +1372,6 @@ def set_controls_enabled(self, enabled):
14071372 pass
14081373 except Exception :
14091374 pass
1410- # self.custom_args supprimé (widget supprimé)
14111375
14121376 from .preferences import load_preferences , save_preferences , update_ui_state
14131377
@@ -1511,45 +1475,7 @@ def _set(attr: str, key: str, method: str = "setText"):
15111475 # Logs
15121476 _set ("label_logs_section" , "label_logs_section" )
15131477
1514- # Tabs - only try if compiler_tabs exists and has tabs
1515- try :
1516- if hasattr (self , "compiler_tabs" ) and self .compiler_tabs :
1517- tab_count = self .compiler_tabs .count ()
1518- if tab_count > 0 :
1519- val0 = tr .get ("tab_pyinstaller" )
1520- if val0 :
1521- self .compiler_tabs .setTabText (0 , val0 )
1522- if tab_count > 1 :
1523- val1 = tr .get ("tab_nuitka" )
1524- if val1 :
1525- self .compiler_tabs .setTabText (1 , val1 )
1526- except Exception :
1527- pass
1528-
1529- # PyInstaller options
1530- _set ("opt_onefile" , "opt_onefile" )
1531- _set ("opt_windowed" , "opt_windowed" )
1532- _set ("opt_noconfirm" , "opt_noconfirm" )
1533- _set ("opt_clean" , "opt_clean" )
1534- _set ("opt_noupx" , "opt_noupx" )
1535- _set ("opt_main_only" , "opt_main_only" )
1536- _set ("btn_select_icon" , "btn_select_icon" )
1537- _set ("opt_debug" , "opt_debug" )
1538- _set ("opt_auto_install" , "opt_auto_install" )
1539- _set ("opt_silent_errors" , "opt_silent_errors" )
1540-
1541- # Nuitka options
1542- _set ("nuitka_onefile" , "nuitka_onefile" )
1543- _set ("nuitka_standalone" , "nuitka_standalone" )
1544- _set ("nuitka_disable_console" , "nuitka_disable_console" )
1545- _set ("nuitka_show_progress" , "nuitka_show_progress" )
1546- try :
1547- placeholder = tr .get ("nuitka_output_dir" )
1548- if placeholder and getattr (self , "nuitka_output_dir" , None ):
1549- self .nuitka_output_dir .setPlaceholderText (placeholder )
1550- except Exception :
1551- pass
1552- _set ("btn_nuitka_icon" , "btn_nuitka_icon" )
1478+ # Note: Tabs are now dynamically created by engines, no static translation needed
15531479
15541480 def apply_language (self , lang_display : str ):
15551481 # Launch non-blocking translation loading and apply when ready
0 commit comments