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

Function page

tests/test_joystick.py:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10 @ui.page('/')
11 def page():
12 nonlocal j
13 j = ui.joystick(on_move=lambda e: coordinates.set_text(f'move {e.x:.3f}, {e.y:.3f}'),
14 on_end=lambda _: coordinates.set_text('end 0, 0'))
15 coordinates = ui.label('start 0, 0')
16
17 screen.open('/')
18 joystick = screen.find_element(j)

Callers

nothing calls this directly

Calls 3

set_textMethod · 0.80
classesMethod · 0.45
styleMethod · 0.45

Tested by

no test coverage detected