def __call__(self): evt = BatchEvent(myEVT_STAGE, -1, (self.njobs, self.descr)) wx.PostEvent(self._parent, evt) BatchConsumer.__call__(self)