code: def cleanup(self):
          
          if self._movie is not None:
              self._movie.frameChanged.disconnect(self._updateFrame)
              self._movie = None
docs: Cleanup references to the movie when this button is destroyed.