Bonjour,

Je suis en train de développer un plugin python sur QGIS et j'ai eu cette erreur : TypeError: __init__() takes at least 2 arguments (2 given)

Voilà mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if self.checked_list != [] :
        dialog = LaunchTRANUSDialog(self.checked_list,parent=self)
        dialog.show()
        result = dialog.exec_()
        self.reinitialise_checked_list()
 
class LaunchTRANUSDialog(QtGui.QDialog, FORM_CLASS):
 
def __init__(self,checked_list,parent=None):
    """Constructor."""
    super(LaunchTRANUSDialog, self).__init__(parent)
 
    self.setupUi(self)
    self.checked_list = checked_list
 
    self.tabs = self.findChild(QtGui.QTabWidget, 'tabWidget')
Pourriez-vous m'orienter vers des pistes ? Je serai très reconnaissante.