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