Beispiel #1
0
 def _set_busy(self, busy):
     # If busy is the same, do nothing.
     if busy is self._is_busy:
         return
     self._is_busy = busy
     # Set the busy cursor.
     logger.log(5, "GUI is %sbusy" % ('' if busy else 'not '))
     set_busy(busy)
     # Let the cluster views know that the GUI is busy.
     self.cluster_view.set_busy(busy)
     self.similarity_view.set_busy(busy)
Beispiel #2
0
 def _set_busy(self, busy):
     # If busy is the same, do nothing.
     if busy is self._is_busy:
         return
     self._is_busy = busy
     # Set the busy cursor.
     logger.log(5, "GUI is %sbusy" % ('' if busy else 'not '))
     set_busy(busy)
     # Let the cluster views know that the GUI is busy.
     self.cluster_view.set_busy(busy)
     self.similarity_view.set_busy(busy)
     # If the GUI is no longer busy, stop the debouncer waiting period.
     if not busy:
         self.cluster_view.debouncer.stop_waiting()