def _copy(self) -> None: if not ba.clipboard_is_supported(): ba.screenmessage('Clipboard not supported on this platform.', color=(1, 0, 0)) return ba.clipboard_set_text('\n'.join(self._printed_lines)) ba.screenmessage(f'{len(self._printed_lines)} lines copied.')
def _host_copy_press(self) -> None: assert self._hostingstate.party_code is not None ba.clipboard_set_text(self._hostingstate.party_code) ba.screenmessage(ba.Lstr(resource='gatherWindow.copyCodeConfirmText'))