Exemplo n.º 1
0
        def genData():

            # Another genData function is
            # already queued - don't run.
            # The TaskThreadVeto error
            # will stop the TaskThread from
            # calling configTexture as well.
            if self.__taskThread is not None and \
               self.__taskThread.isQueued(self.__taskName):
                raise idle.TaskThreadVeto()

            if refreshData:
                self.__determineTextureType()
                self.__prepareTextureData()
Exemplo n.º 2
0
 def task():
     taskCalled[0] = True
     raise idle.TaskThreadVeto()