def hideEvent(self, event): QMainWindow.hideEvent(self, event) if self.__loop is not None: self.__loop.exit(0) self.__loop = None
def hideEvent(self, ev): self.follower.endFollow() return QMainWindow.hideEvent(self, ev)