Skip to content

Commit 0c9b7fc

Browse files
committed
Added UI element connections and widget finds
1 parent 245e251 commit 0c9b7fc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Core/init_ui.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from PySide6.QtUiTools import QUiLoader
2222
from PySide6.QtWidgets import (
2323
QLabel,
24+
QLineEdit,
2425
QListWidget,
2526
QProgressBar,
2627
QPushButton,
@@ -264,6 +265,8 @@ def init_ui(self):
264265
pass
265266
# Static button widgets are no longer used - buttons are now in dynamic tabs
266267
self.btn_select_icon = None
268+
# Find select_theme widget if it exists in the UI
269+
self.select_theme = self.ui.findChild(QPushButton, "select_theme")
267270
# Static checkbox widgets are no longer used - options are now in dynamic tabs
268271
self.opt_onefile = None
269272
self.opt_windowed = None
@@ -340,6 +343,8 @@ def init_ui(self):
340343

341344
if self.btn_help:
342345
self.btn_help.clicked.connect(self.show_help_dialog)
346+
# Find btn_show_stats widget if it exists in the UI
347+
self.btn_show_stats = self.ui.findChild(QPushButton, "btn_show_stats")
343348
if self.btn_show_stats:
344349
self.btn_show_stats.setToolTip(
345350
"Afficher les statistiques de compilation (temps, nombre de fichiers, mémoire)"
@@ -348,6 +353,8 @@ def init_ui(self):
348353
# Static checkbox widgets are None - options are now in dynamic tabs
349354
# No signal connections needed for static widgets
350355
# self.custom_args supprimé (widget inutilisé)
356+
# Find select_lang widget if it exists in the UI
357+
self.select_lang = self.ui.findChild(QPushButton, "select_lang")
351358
if self.select_lang:
352359
self.select_lang.setToolTip("Choisir la langue de l'interface utilisateur.")
353360
try:

0 commit comments

Comments
 (0)