Exemplo n.º 1
0
 def isquit(self):
     """
     """
     CalcThread.isquit(self)
     if time.time() > self._time_for_sleep + self._sleep_delay:
         time.sleep(.2)
         self._time_for_sleep = time.time()
Exemplo n.º 2
0
 def isquit(self):
     """
     """
     CalcThread.isquit(self)
     if time.time() > self._time_for_sleep + self._sleep_delay:
         time.sleep(.2)
         self._time_for_sleep = time.time()
Exemplo n.º 3
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
Exemplo n.º 4
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
Exemplo n.º 5
0
    def isquit(self):
        """
        :raise KeyboardInterrupt: when the thread is interrupted

        """
        try:
            CalcThread.isquit(self)
        except KeyboardInterrupt:
            msg = "Fitting: terminated by the user."
            raise KeyboardInterrupt, msg