Bonjour,
Ci dessous, mon signal et la fonction appelé, le problème c'est que cela m'écrit :
1
x <type 'int'> y <type 'int'>
x <type 'int'> y <type 'int'>

mais le 1 correspond au x donnée par cellClicked(int, int). Donc, je vois pas comment faire.


Code : Sélectionner tout - Visualiser dans une fenêtre à part
self.msa_output.connect(self.msa_output.table_aligt,SIGNAL('cellClicked(int, int)'), lambda msa=self.msa_output.id_msa: self.click_msa(int,int,id))
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
def click_msa(self,x, y, id):
        print id
        print "x ",x," y ",y
merci!

Alaninho