Esempio 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()
Esempio 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()
Esempio n. 3
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
Esempio n. 4
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
Esempio 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