diff --git a/gui/Gui/Scytherthread.py b/gui/Gui/Scytherthread.py index 5ea306a..68b96d7 100644 --- a/gui/Gui/Scytherthread.py +++ b/gui/Gui/Scytherthread.py @@ -107,9 +107,9 @@ class AttackThread(threading.Thread): self.makeImage(attack) done += 1 if self.callbackattack: - self.callbackattack(attack,self.totalattacks,done) + wx.CallAfter(self.callbackattack,attack,self.totalattacks,done) if self.callbackclaim: - self.callbackclaim(cl) + wx.CallAfter(self.callbackclaim,cl) def makeImage(self,attack): """ create image for this particular attack """