code: def blink_figure(self):
          
          if self.fig:
              self._blink_flag = not self._blink_flag
              self.repaint()
              if self._blink_flag:
                  timer = QTimer()
                  timer.singleShot(40, self.blink_figure)
docs: Blink figure once.