MCPcopy
hub / github.com/zauberzeug/nicegui / open

Method open

nicegui/client.py:307–310  ·  view source on GitHub ↗

Open a new page in the client.

(self, target: Callable | str, new_tab: bool = False)

Source from the content-addressed store, hash-verified

305 return AwaitableResponse(send_and_forget, send_and_wait)
306
307 def open(self, target: Callable | str, new_tab: bool = False) -> None:
308 """Open a new page in the client."""
309 path = target if isinstance(target, str) else self.page_routes[target]
310 self.outbox.enqueue_message('open', {'path': path, 'new_tab': new_tab}, self.id)
311
312 def download(self, src: str | bytes, filename: str | None = None, media_type: str = '') -> None:
313 """Download a file from a given URL or raw bytes."""

Callers 15

fetch_languages.pyFile · 0.45
_handle_navigateMethod · 0.45
test_joystickFunction · 0.45
test_styling_joystickFunction · 0.45
test_fabFunction · 0.45
test_open_close_dialogFunction · 0.45
test_await_dialogFunction · 0.45
test_dialog_in_menuFunction · 0.45
test_timelineFunction · 0.45

Calls 1

enqueue_messageMethod · 0.80