def close(self): """Closes the installer by clicking the Close button in the window title bar and confirming if necessary. """ AnchoredWindow.close(self) sleep(1) if not self.page in [self.complete_page, self.cancelled_page]: self.confirm_window_open = True self.confirm_cancel('yes') AnchoredWindow.close(self) sleep(1) self.running = False self.installing = False