Bonjour,
Lorsque j'utilise la méthode suivante dans un autre scipt, le résultat désiré s'affiche bien à l'écran mais je n'arrive pas à le récupérer. Avec un 'print' de la méthode, je me rertouve aven un 'None' et non avec le résultat afficher par la méthode à l'écran:
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
17
18
19
20
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1234567891011121314
    def put(self, path1, path2, path3, path4, function, comment,  exposant):
 
        self.pathway1 = path1
        self.pathway2 = path2
        self.pathway3 = path3
        self.pathway4 = path4
        self.mode = function
        self.instruction = comment
        self.td = exposant
 
        table = [self.pathway1,self.pathway2,self.pathway3,self.pathway4,self.mode,self.instruction,self.td]
        for chemin in table[0:5]:
            print type(chemin), ', length =',len(chemin), ', name =',chemin
        print type(table[6]), ', value =',table[6]
Merci de votre aide.