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

Function page

tests/test_log.py:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8 @ui.page('/')
9 def page():
10 nonlocal log
11 log = ui.log(max_lines=3)
12 log.push('A')
13 log.push('B')
14 log.push('C')
15 log.push('D')
16
17 screen.open('/')
18 assert screen.find_element(log).text == 'B\nC\nD'

Callers

nothing calls this directly

Calls 5

default_classesMethod · 0.80
default_styleMethod · 0.80
default_propsMethod · 0.80
pushMethod · 0.45
classesMethod · 0.45

Tested by

no test coverage detected