예제 #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):
     """
     :raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
예제 #3
0
 def isquit(self):
     """
          @raise KeyboardInterrupt: when the thread is interrupted
     """
     try:
         CalcThread.isquit(self)
     except KeyboardInterrupt:
         raise KeyboardInterrupt
예제 #4
0
파일: fit_thread.py 프로젝트: ianhi/sasview
    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
예제 #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