@@ -304,8 +304,6 @@ def init_ui(self):
304304 self .nuitka_show_progress = None
305305 self .nuitka_plugins = None # Champ supprimé de l'UI; plugins gérés automatiquement
306306 self .nuitka_output_dir = None
307- self .nuitka_add_data = None
308- self .nuitka_data_files = [] # Liste des tuples (source, dest)
309307 self .btn_nuitka_icon = None
310308 # Static checkbox widgets are None - options are now in dynamic tabs
311309 # Tooltips are handled by the engines themselves
@@ -316,8 +314,6 @@ def init_ui(self):
316314 self .progress = self .ui .findChild (QProgressBar , "progress" )
317315 self .log = self .ui .findChild (QTextEdit , "log" )
318316 # PyInstaller widgets (no longer static - now created dynamically by PyInstaller engine)
319- self .pyinstaller_add_data = None
320- self .pyinstaller_data = [] # Liste des tuples (source, dest)
321317 self .output_dir_input = None
322318 self .btn_browse_output_dir = None
323319 self .btn_export_config = self .ui .findChild (QPushButton , "btn_export_config" )
@@ -442,111 +438,6 @@ def set_checked_safe(widget, checked):
442438 pass
443439
444440
445- def add_pyinstaller_data (self ):
446- import os
447-
448- from PySide6 .QtCore import QDir
449- from PySide6 .QtWidgets import QFileDialog , QInputDialog
450-
451- choix , ok = QInputDialog .getItem (
452- self ,
453- "Type d'inclusion" ,
454- "Inclure un fichier ou un dossier ?" ,
455- ["Fichier" , "Dossier" ],
456- 0 ,
457- False ,
458- )
459- if not ok :
460- return
461- if choix == "Fichier" :
462- file_path , _ = QFileDialog .getOpenFileName (
463- self , "Sélectionner un fichier à inclure avec PyInstaller"
464- )
465- if file_path :
466- dest , ok = QInputDialog .getText (
467- self ,
468- "Chemin de destination" ,
469- "Chemin de destination dans l'exécutable :" ,
470- text = os .path .basename (file_path ),
471- )
472- if ok and dest :
473- self .pyinstaller_data .append ((file_path , dest ))
474- if hasattr (self , "log" ):
475- self .log .append (
476- f"Fichier ajouté à PyInstaller : { file_path } => { dest } "
477- )
478- elif choix == "Dossier" :
479- dir_path = QFileDialog .getExistingDirectory (
480- self , "Sélectionner un dossier à inclure avec PyInstaller" , QDir .homePath ()
481- )
482- if dir_path :
483- dest , ok = QInputDialog .getText (
484- self ,
485- "Chemin de destination" ,
486- "Chemin de destination dans l'exécutable :" ,
487- text = os .path .basename (dir_path ),
488- )
489- if ok and dest :
490- self .pyinstaller_data .append ((dir_path , dest ))
491- if hasattr (self , "log" ):
492- self .log .append (
493- f"Dossier ajouté à PyInstaller : { dir_path } => { dest } "
494- )
495-
496-
497- def add_nuitka_data_file (self ):
498- import os
499-
500- from PySide6 .QtCore import QDir
501- from PySide6 .QtWidgets import QFileDialog , QInputDialog
502-
503- # Demander à l'utilisateur s'il veut ajouter un fichier ou un dossier
504- choix , ok = QInputDialog .getItem (
505- self ,
506- "Type d'inclusion" ,
507- "Inclure un fichier ou un dossier ?" ,
508- ["Fichier" , "Dossier" ],
509- 0 ,
510- False ,
511- )
512- if not ok :
513- return
514- if not hasattr (self , "nuitka_data_files" ):
515- self .nuitka_data_files = []
516- if not hasattr (self , "nuitka_data_dirs" ):
517- self .nuitka_data_dirs = []
518- if choix == "Fichier" :
519- file_path , _ = QFileDialog .getOpenFileName (
520- self , "Sélectionner un fichier à inclure avec Nuitka"
521- )
522- if file_path :
523- dest , ok = QInputDialog .getText (
524- self ,
525- "Chemin de destination" ,
526- "Chemin de destination dans l'exécutable :" ,
527- text = os .path .basename (file_path ),
528- )
529- if ok and dest :
530- self .nuitka_data_files .append ((file_path , dest ))
531- if hasattr (self , "log" ):
532- self .log .append (f"Fichier ajouté à Nuitka : { file_path } => { dest } " )
533- elif choix == "Dossier" :
534- dir_path = QFileDialog .getExistingDirectory (
535- self , "Sélectionner un dossier à inclure avec Nuitka" , QDir .homePath ()
536- )
537- if dir_path :
538- dest , ok = QInputDialog .getText (
539- self ,
540- "Chemin de destination" ,
541- "Chemin de destination dans l'exécutable :" ,
542- text = os .path .basename (dir_path ),
543- )
544- if ok and dest :
545- self .nuitka_data_dirs .append ((dir_path , dest ))
546- if hasattr (self , "log" ):
547- self .log .append (f"Dossier ajouté à Nuitka : { dir_path } => { dest } " )
548-
549-
550441def show_language_dialog (self ):
551442 from PySide6 .QtWidgets import QInputDialog
552443
0 commit comments