()
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…