Bonjour je cherche a simplifier se code et que si je veux rajouter d'autre variable (qui peuvent êtres True ou False) ne soit pas compliquer :
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
21 def patch() : #patch bouton global resultat if hostuse =="True" : hostedit() if copyFuse =="True" : try: waiter.start() except:error('thread') try:copy.start() except: error('thread') elif copyFuse =="False" : print "False Copy" elif hostuse =="False" : if copyFuse =="True" : try: waiter.start() except:error('thread') try:copy.start() except: error('thread') elif copyFuse =="False" : print "False All" error('config') else : error('config')
Partager