@Yattara Next time please ensure that your example really allows to reproduce your issue. Here boutonSlot will never be called because it's not called from anywhere. Also, your FenetreSimple widget is never shown.
Anyway, here is a small example that works with a complex signal.
import sys
from PyQt6.QtWidgets import QApplication
from PyQt6.QtWidgets import QPushButton
from PyQt6.QtWidgets import QHBoxLayout
from PyQt6.QtWidgets import QWidget
from PyQt6.QtCore import pyqtSignal
class Widget(QWidget):
complex_signal = pyqtSignal(int, list, str)
def __init__(self, parent=None):
super().__init__(parent)
button = QPushButton("Test me")
layout = QHBoxLayout(self)
layout.addWidget(button)
button.clicked.connect(self.on_clicked)
self.complex_signal.connect(self.on_complex_signal)
def on_clicked(self, checked=False):
self.complex_signal.emit(2, [1, 2, 3], 'Hello')
def on_complex_signal(self, *args):
for idx, item in enumerate(args):
print(idx, item)
if __name__ == '__main__':
application = QApplication(sys.argv)
widget = Widget()
widget.show()
sys.exit(application.exec())