PyWebIO v1.6.1 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.6.1 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.2 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.5.2 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.4.0 Documentationetc: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image('some-image.png') # Markdown Output put_ put_collapse('This is title'): for i in range(4): put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 102 页 | 1.35 MB | 1 年前3
PyWebIO v1.6.2 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.6.2 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.0 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.5.0 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.1 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.5.1 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.6.3 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.6.3 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.6.0 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.6.0 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.7.1 Documentationon: # Text Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) User’s guide 13 PyWebIO, Release 1.7.1 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For a full list of functions that support context manager, see Output toast('You click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) The return value of onclick()0 码力 | 112 页 | 1.38 MB | 1 年前3
PyWebIO v1.4.0 DocumentationText Output put_text("Hello world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image('some-image.png') # Markdown Output for i in range(4): put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) from functools import partial def edit_row(choice, row): click an image')) # set onclick in combined output put_table([ ['Commodity', 'Price'], ['Apple', put_text('5.5').onclick(lambda: toast('You click the text'))], ]) use_scope() You can use use_scope()0 码力 | 135 页 | 7.45 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













