def party_invite_revoke(invite_id: str) -> None: # If there's a confirm window up for joining this particular # invite, kill it. for winref in _ba.app.invite_confirm_windows: win = winref() if win is not None and win.ew_party_invite_id == invite_id: _ba.containerwidget(edit=win.get_root_widget(), transition='out_right')
def clear_main_menu_window(self, transition: str = None) -> None: """Clear any existing 'main' window with the provided transition.""" if self._main_menu_window: if transition is not None: _ba.containerwidget(edit=self._main_menu_window, transition=transition) else: self._main_menu_window.delete()