MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / show_popup

Function show_popup

demos/theme.py:223–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 put_markdown('# Popup')
222
223 def show_popup():
224 popup('Popup title', [
225 'Popup body text goes here.',
226 put_table([
227 ['Type', 'Content'],
228 ['html', put_html('X<sup>2</sup>')],
229 ['text', '<hr/>'],
230 ['buttons', put_buttons(['A', 'B'], onclick=toast)],
231 ['markdown', put_markdown('`Awesome PyWebIO!`')],
232 ['file', put_file('hello.text', b'')],
233 ['table', put_table([['A', 'B'], ['C', 'D']])]
234 ]),
235 put_button('Close', onclick=close_popup, outline=True)
236 ], size=PopupSize.NORMAL)
237
238 put_button("Click me to show a popup", onclick=show_popup)
239

Callers

nothing calls this directly

Calls 7

popupFunction · 0.85
put_tableFunction · 0.85
put_htmlFunction · 0.85
put_buttonsFunction · 0.85
put_markdownFunction · 0.85
put_fileFunction · 0.85
put_buttonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…