Пример #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()
Пример #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()
Пример #3
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
Пример #4
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
Пример #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