 PyWebIO v1.6.2 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 148 页 | 7.46 MB | 1 年前3 PyWebIO v1.6.2 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 148 页 | 7.46 MB | 1 年前3
 PyWebIO v1.5.1 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' single PyWebIO application function. config(title="My application") @config(css_style="* { color:red }") def app(): put_text("hello PyWebIO") title and description are used for SEO, which are provided0 码力 | 144 页 | 7.46 MB | 1 年前3 PyWebIO v1.5.1 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' single PyWebIO application function. config(title="My application") @config(css_style="* { color:red }") def app(): put_text("hello PyWebIO") title and description are used for SEO, which are provided0 码力 | 144 页 | 7.46 MB | 1 年前3
 PyWebIO v1.6.1 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 148 页 | 7.46 MB | 1 年前3 PyWebIO v1.6.1 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 148 页 | 7.46 MB | 1 年前3
 PyWebIO v1.6.3 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 150 页 | 7.46 MB | 1 年前3 PyWebIO v1.6.3 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 150 页 | 7.46 MB | 1 年前3
 PyWebIO v1.6.0 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 148 页 | 7.46 MB | 1 年前3 PyWebIO v1.6.0 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 148 页 | 7.46 MB | 1 年前3
 PyWebIO v1.5.2 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' single PyWebIO application function. config(title="My application") @config(css_style="* { color:red }") def app(): put_text("hello PyWebIO") title and description are used for SEO, which are provided0 码力 | 144 页 | 7.46 MB | 1 年前3 PyWebIO v1.5.2 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' single PyWebIO application function. config(title="My application") @config(css_style="* { color:red }") def app(): put_text("hello PyWebIO") title and description are used for SEO, which are provided0 码力 | 144 页 | 7.46 MB | 1 年前3
 PyWebIO v1.5.0 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' single PyWebIO application function. config(title="My application") @config(css_style="* { color:red }") def app(): put_text("hello PyWebIO") title and description are used for SEO, which are provided0 码力 | 144 页 | 7.46 MB | 1 年前3 PyWebIO v1.5.0 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' single PyWebIO application function. config(title="My application") @config(css_style="* { color:red }") def app(): put_text("hello PyWebIO") title and description are used for SEO, which are provided0 码力 | 144 页 | 7.46 MB | 1 年前3
 PyWebIO v1.7.0 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 149 页 | 7.46 MB | 1 年前3 PyWebIO v1.7.0 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 149 页 | 7.46 MB | 1 年前3
 PyWebIO v1.7.1 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 152 页 | 7.47 MB | 1 年前3 PyWebIO v1.7.1 DocumentationOverview Server mode put_text('hello').style('color: red; font-size: 20px') # in combined output put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: style(put_text('Red'), 'color:red') style([ put_text('Red'), put_markdown('~~del~~') ], 'color:red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color:red')], ]) put_collapse('title' application function. config(title="My application") # global configuration @config(css_style="* { color:red }") # only works on this application def app(): put_text("hello PyWebIO") Note The configuration0 码力 | 152 页 | 7.47 MB | 1 年前3
 PyWebIO v1.2.3 DocumentationCSS style for a single put_xxx() output: style(put_text('Red'), 'color: red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color: red')], ]) style() also accepts a list of output calls, style() style() will set the CSS style for each item of the list: style([ put_text('Red'), put_markdown('~~del~~') ], 'color: red') put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left: style(put_text('Red'), 'color:red') (continues on next page) 4.3. pywebio.output — Make output to web browser 49 PyWebIO, Release 1.2.3 (continued from previous page) style([ put_text('Red'), put_markdown('~~del~~')0 码力 | 92 页 | 1.32 MB | 1 年前3 PyWebIO v1.2.3 DocumentationCSS style for a single put_xxx() output: style(put_text('Red'), 'color: red') put_table([ ['A', 'B'], ['C', style(put_text('Red'), 'color: red')], ]) style() also accepts a list of output calls, style() style() will set the CSS style for each item of the list: style([ put_text('Red'), put_markdown('~~del~~') ], 'color: red') put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left: style(put_text('Red'), 'color:red') (continues on next page) 4.3. pywebio.output — Make output to web browser 49 PyWebIO, Release 1.2.3 (continued from previous page) style([ put_text('Red'), put_markdown('~~del~~')0 码力 | 92 页 | 1.32 MB | 1 年前3
共 84 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9














