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

Function page

tests/test_dialog.py:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11def test_open_close_dialog(screen: Screen):
12 @ui.page('/')
13 def page():
14 with ui.dialog() as d, ui.card():
15 ui.label('Content')
16 ui.button('Close', on_click=d.close)
17 ui.button('Open', on_click=d.open)
18
19 screen.open('/')
20 screen.should_not_contain('Content')

Callers

nothing calls this directly

Calls 5

submitMethod · 0.80
linkMethod · 0.80
link_targetMethod · 0.80
bind_text_fromMethod · 0.80
classesMethod · 0.45

Tested by

no test coverage detected