class Thread(threading.Thread):
def __init__(self):
###Initialisation de notre thread
self.stop=False
def setStop(self):
"""Trip the stop flag."""
self.stop = True
def run(self):
while not self.stop :
###CODE DU THREAD#########
##On peut mettre un le flag de stop en fin de code si on veut pas un thread infini###
self.setStop()
return()
class gui(wx.App):
def OnInit(self):
###Classe init Wxwindows ou GTK#####
def thread(self):
###On appelle notre thread########
variable = Thread()
variable.start() ###Oublie dans le post avant
[^] # Désoler jai oublier un truc
Posté par Sylvain . En réponse au message pygtk et les threads. Évalué à 0.