PyWebIO v0.3.0 使用手册组合输出 put_table() 还支持以 put_xxx 类型的输出函数作为单元格内容: put_table([ ['Type', 'Content'], ['html', 'X2'], ['text', put_text('
')], ['buttons', put_buttons(['A', 'B'], onclick=...)] 0):{"row":2}, (0,1):{"col":2}}) # 单元格为 ``put_xxx`` 类型的输出函数 put_table([ ['Type', 'Content'], ['html', 'X2'], ['text', put_text('
')], ['buttons', put_buttons(['A', 'B'], onclick=...)] (bool): 用户使用的设备是否为平板 (比如 iPad, Kindle Fire, Nexus 7 等设备) is_pc (bool): 用户使用的设备是否为桌面电脑 (比如运行 Windows, OS X, Linux 的设备) is_touch_capable (bool): 用户使用的设备是 否支持触控 browser.family (str): 浏览器家族. 比如 ‘Mobile Safari’0 码力 | 72 页 | 8.55 MB | 1 年前3
PyWebIO v1.0.3 使用手册popup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # 等价于 ['text', put_text('
')] ['buttons', put_buttons(['A' webio_view(task_func) 来获得运行PyWebIO应用的Flask视 图 , 并调用 Flask.add_url_rule [https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule] 将其绑定在 /io 路径 下;同时编写视图函数 serve_static_file 将PyWebIO使用的静态文件托 管到 / 路径下。 'America'], ]) # 单元格为 ``put_xxx`` 类型的输出函数 put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown'0 码力 | 106 页 | 7.34 MB | 1 年前3
PyWebIO v1.2.3 使用手册popup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # equal to ['text', put_text('
')] ['buttons', put_buttons(['A' webio_view(task_func) 来获得运行PyWebIO应用的Flask视 图 ,并调用 Flask.add_url_rule [https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule] 将其绑定在 /tool 路径 下。启动Flask应用后,访问 http://localhost/tool 即可打开PyWebIO应 用。 ]) # Use `put_xxx()` in `put_table()` put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown'0 码力 | 119 页 | 7.44 MB | 1 年前3
PyWebIO v1.2.2 使用手册popup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # equal to ['text', put_text('
')] ['buttons', put_buttons(['A' webio_view(task_func) 来获得运行PyWebIO应用的Flask视 图 ,并调用 Flask.add_url_rule [https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule] 将其绑定在 /tool 路径 下。启动Flask应用后,访问 http://localhost/tool 即可打开PyWebIO应 用。 ]) # Use `put_xxx()` in `put_table()` put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown'0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.1.0 使用手册popup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # 等价于 ['text', put_text('
')] ['buttons', put_buttons(['A' webio_view(task_func) 来获得运行PyWebIO应用的Flask视 图 , 并调用 Flask.add_url_rule [https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule] 将其绑定在 /tool 路径 下。启动Flask应用后,访问 http://localhost/tool 即可打开PyWebIO应 用 'America'], ]) # 单元格为 ``put_xxx`` 类型的输出函数 put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown'0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.2.3 Documentationpopup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # equal to ['text', put_text('
')] ['buttons', put_buttons(['A' ]) # Use `put_xxx()` in `put_table()` put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown' is_pc (bool): whether user agent is identified to be running a traditional “desktop” OS (Windows, OS X, Linux) is_touch_capable (bool): whether user agent has touch capabilities browser.family (str): Browser0 码力 | 119 页 | 7.43 MB | 1 年前3
PyWebIO v1.2.2 Documentationpopup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # equal to ['text', put_text('
')] ['buttons', put_buttons(['A' ]) # Use `put_xxx()` in `put_table()` put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown' is_pc (bool): whether user agent is identified to be running a traditional “desktop” OS (Windows, OS X, Linux) is_touch_capable (bool): whether user agent has touch capabilities browser.family (str): Browser0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v0.3.0 使用手册0.3.0 组合输出 put_table() 还支持以 put_xxx 类型的输出函数作为单元格内容: put_table([ ['Type', 'Content'], ['html', 'X2'], ['text', put_text('
')], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown' 0):{"row":2}, (0,1):{"col":2}}) # 单元格为 ``put_xxx`` 类型的输出函数 put_table([ ['Type', 'Content'], ['html', 'X2'], ['text', put_text('
')], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown' 用户使用的设备是否为平板 (比如 iPad, Kindle Fire, Nexus 7 等 设备) – is_pc (bool): 用户使用的设备是否为桌面电脑 (比如运行 Windows, OS X, Linux 的 设备) – is_touch_capable (bool): 用户使用的设备是否支持触控 – browser.family (str): 浏览器家族. 比如‘Mobile Safari’0 码力 | 70 页 | 1.41 MB | 1 年前3
PyWebIO v1.3.2 Documentationpopup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # equal to ['text', put_text('
')] ['buttons', put_buttons(['A' ]) # Use `put_xxx()` in `put_table()` put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown' is_pc (bool): whether user agent is identified to be running a traditional “desktop” OS (Windows, OS X, Linux) is_touch_capable (bool): whether user agent has touch capabilities browser.family (str): Browser0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.0 Documentationpopup('popup title', 'popup text content') put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], # equal to ['text', put_text('
')] ['buttons', put_buttons(['A' ]) # Use `put_xxx()` in `put_table()` put_table([ ['Type', 'Content'], ['html', put_html('X2')], ['text', '
'], ['buttons', put_buttons(['A', 'B'], onclick=...)], ['markdown' is_pc (bool): whether user agent is identified to be running a traditional “desktop” OS (Windows, OS X, Linux) is_touch_capable (bool): whether user agent has touch capabilities browser.family (str): Browser0 码力 | 133 页 | 7.44 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













