MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / output_widgets

Function output_widgets

demos/theme.py:107–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106
107def output_widgets():
108 ###########################################################################################
109 put_markdown("# Typography")
110 put_row([
111 put_markdown("""
112 ## Heading 2
113 ### Heading 3
114 #### Heading 4
115 ##### Heading 5
116
117 [PyWebIO](https://github.com/pywebio/PyWebIO) is awesome!
118
119 *This text will be italic*
120 **This text will be bold**
121 _You **can** combine them_
122 ~~Strikethrough~~
123 This is `inline code`
124
125 As Kanye West said:
126
127 > We're living the future so
128 > the present is our past.
129 """),
130
131 put_markdown("""
132 ### Lists
133 * Item 1
134 * Item 2
135 * Item 2a
136 * Item 2b
137
138 1. Item 1
139 1. Item 2
140 1. Item 2a
141 1. Item 2b
142
143 ### Task Lists
144 - [x] [links](), **formatting**, and <del>tags</del> supported
145 - [x] list syntax required (any unordered or ordered list supported)
146 - [x] this is a complete item
147 - [ ] this is an incomplete item
148 """)
149 ])
150
151 ###########################################################################################
152 put_markdown("""
153 # Code
154 ```python
155 from pywebio import *
156
157 def main(): # PyWebIO application function
158 name = input.input("what's your name")
159 output.put_text("hello", name)
160
161 start_server(main, port=8080, debug=True)
162 ```
163 """)
164 ###########################################################################################

Callers 1

pageFunction · 0.85

Calls 15

put_markdownFunction · 0.85
put_rowFunction · 0.85
use_scopeFunction · 0.85
put_imageFunction · 0.85
put_buttonsFunction · 0.85
toastFunction · 0.85
put_tableFunction · 0.85
put_htmlFunction · 0.85
put_fileFunction · 0.85
put_buttonFunction · 0.85
put_columnFunction · 0.85
put_codeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…