PyWebIO v0.3.0 使用手册
的 情况是直接传入 code={} 或 code=True): code = textarea('Code Edit', code={ 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区darcula主题, Visit https://codemirror.net/demo/theme.html#cobalt to get after=None) → pywebio.io_ctrl.OutputReturn 参数: 参数: 输出代码块 content (str) – 代码内容 langage (str) – 代码语言 anchor, before, after (str) – 与 put_text 函数的同名参数 含义一致 pywebio.output.put_table(tdata, header=None brand (str): 设备品牌. 比如 ‘Apple’ device.model (str): 设备幸好. 比如 ‘iPhone’ user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' server_host (str): 当前会话的服务器host,包含域名 和端口,端口为80时可以被省略 origin (str): 当前用户的页面地址. 包含 协议、主0 码力 | 72 页 | 8.55 MB | 1 年前3PyWebIO v0.3.0 使用手册
支持的选项即可 (最简单的情况是直接传入 code={} 或 code=True): code = textarea('Code Edit', code={ 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区 darcula 主题, Visit https://codemirror.net/demo/theme. �→html#cobalt to get after=None) → pywe- bio.io_ctrl.OutputReturn 输出代码块 参数 • content (str) –代码内容 • langage (str) –代码语言 • anchor, before, after (str) –与put_text 函数的同名参数含义一致 pywebio.output.put_table(tdata, header=None brand (str): 设备品牌. 比如‘Apple’ – device.model (str): 设备幸好. 比如‘iPhone’ • user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' • server_host (str): 当前会话的服务器 host,包含域名和端口,端口为 80 时可以被 省略 4.4. pywebio.session —More0 码力 | 70 页 | 1.41 MB | 1 年前3PyWebIO v1.1.0 使用手册
支持的选项即可 (最简单的情况是直接传入 code={} 或 code=True): code = textarea('Code Edit', code={ 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区 darcula 主题, Visit https://codemirror.net/demo/theme. �→html#cobalt to get 输出代码块 参数 42 Chapter 4. Documentation PyWebIO, 发布 1.1.0 • content (str) –代码内容 • language (str) –代码语言 • rows (int) –代码块最多可显示的文本行数,默认不限制。内容超出时会使用滚动 条。 • scope, position (int) –与put_text 函数的同名参数含义一致 brand (str): 设备品牌. 比如‘Apple’ – device.model (str): 设备型号. 比如‘iPhone’ • user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' 4.4. pywebio.session —会话相关 59 PyWebIO, 发布 1.1.0 • server_host (str): 当前会话的服务器 host,包含域名和端口,端口为0 码力 | 98 页 | 1.73 MB | 1 年前3PyWebIO v1.0.3 使用手册
返回以单项输入函数中的 name 作为键、以输 入数据为值的字典: code = textarea('Code Edit', code={ 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区darcula主题, Visit https://codemirror.net/demo/theme.html#cobalt to get style(put_loading(), 'width:4rem; height:4rem') 参数: 参数: content (str) – 代码内容 language (str) – 代码语言 scope, position (int) – 与 put_text 函数的同名参数含义 一致 pywebio.output.put_table(tdata, header=None, scope=- brand (str): 设备品牌. 比如 ‘Apple’ device.model (str): 设备型号. 比如 ‘iPhone’ user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' server_host (str): 当前会话的服务器host,包含域名 和端口,端口为80时可以被省略 origin (str): 当前用户的页面地址. 包含 协议、主机、0 码力 | 106 页 | 7.34 MB | 1 年前3PyWebIO v1.0.3 使用手册
支持的选项即可 (最简单的情况是直接传入 code={} 或 code=True): code = textarea('Code Edit', code={ 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区 darcula 主题, Visit https://codemirror.net/demo/theme. �→html#cobalt to get scope=- 1, position=- 1) → pywebio.io_ctrl.Output 输出代码块 参数 • content (str) –代码内容 • language (str) –代码语言 • scope, position (int) –与put_text 函数的同名参数含义一致 pywebio.output.put_table(tdata, header=None, scope=- brand (str): 设备品牌. 比如‘Apple’ – device.model (str): 设备型号. 比如‘iPhone’ • user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' • server_host (str): 当前会话的服务器 host,包含域名和端口,端口为 80 时可以被 省略 • origin (str): 当前用户的页面地址0 码力 | 94 页 | 1.71 MB | 1 年前5PyWebIO v1.1.0 使用手册
返回以单项输入函数中的 name 作为键、以输 入数据为值的字典: code = textarea('Code Edit', code={ 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区darcula主题, Visit https://codemirror.net/demo/theme.html#cobalt to get scope=- 1, position=- 1) → pywebio.io_ctrl.Output 输出代码块 content (str) – 代码内容 language (str) – 代码语言 rows (int) – 代码块最多可显示的文本行数,默认不限 制。内容超出时会使用滚动条。 scope, position (int) – 与 put_text 函数的同名参数含义 一致 pywebio brand (str): 设备品牌. 比如 ‘Apple’ device.model (str): 设备型号. 比如 ‘iPhone’ user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' server_host (str): 当前会话的服务器host,包含域名 和端口,端口为80时可以被省略 origin (str): 当前用户的页面地址. 包含 协议、主机、0 码力 | 119 页 | 7.41 MB | 1 年前3PyWebIO v1.2.3 使用手册
1, position=- 1) → pywe- bio.io_ctrl.Output 输出代码块 参数 • content (str) –代码内容 • language (str) –代码语言 • rows (int) –代码块最多可显示的文本行数,默认不限制。内容超出时会使用滚动 条。 • scope, position (int) –与put_text 函数的同名参数含义一致 brand (str): 设备品牌. 比如‘Apple’ – device.model (str): 设备型号. 比如‘iPhone’ • user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' • server_host (str): 当前会话的服务器 host,包含域名和端口,端口为 80 时可以被省略 • origin (str): 当 前 用 户 的 页 PyWebIO 支持使用第三方库进行数据可视化,详情见使用 PyWebIO 进行数据可视化 4.8 其他 4.8.1 常用的 Codemirror 选项 • mode (str): 代码语言。支持的语言有:https://codemirror.net/mode/index.html • theme (str): 编辑器主题。可使用的主题:https://codemirror.net/demo/theme0 码力 | 102 页 | 1.67 MB | 1 年前3PyWebIO v1.2.2 使用手册
1, position=- 1) → pywe- bio.io_ctrl.Output 输出代码块 参数 • content (str) –代码内容 • language (str) –代码语言 • rows (int) –代码块最多可显示的文本行数,默认不限制。内容超出时会使用滚动 条。 • scope, position (int) –与put_text 函数的同名参数含义一致 brand (str): 设备品牌. 比如‘Apple’ – device.model (str): 设备型号. 比如‘iPhone’ • user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' • server_host (str): 当前会话的服务器 host,包含域名和端口,端口为 80 时可以被省略 • origin (str): 当 前 用 户 的 页 PyWebIO 支持使用第三方库进行数据可视化,详情见使用 PyWebIO 进行数据可视化 4.8 其他 4.8.1 常用的 Codemirror 选项 • mode (str): 代码语言。支持的语言有:https://codemirror.net/mode/index.html • theme (str): 编辑器主题。可使用的主题:https://codemirror.net/demo/theme0 码力 | 102 页 | 1.69 MB | 1 年前3PyWebIO v1.2.3 使用手册
style(put_loading(), 'width:4rem; height:4rem') 参数: 参数: content (str) – 代码内容 language (str) – 代码语言 rows (int) – 代码块最多可显示的文本行数,默认不限 制。内容超出时会使用滚动条。 scope, position (int) – 与 put_text 函数的同名参数含义 一致 pywebio brand (str): 设备品牌. 比如 ‘Apple’ device.model (str): 设备型号. 比如 ‘iPhone’ user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' server_host (str): 当前会话的服务器host,包含域名和端口,端口 为80时可以被省略 origin (str): 当前用户的页面地址. 包含 协议、主机、端口 启动后台协程 数据可视化demo PyWebIO支持使用第三方库进行数据可视化,详情见 使用PyWebIO进行数据可 视化 其他 常用的Codemirror选项 mode (str): 代码语言。支持的语言有:https://codemirror.net/mode/index.html theme (str): 编辑器主题。可使用的主题: https://codemirror.net/demo/theme0 码力 | 119 页 | 7.44 MB | 1 年前3PyWebIO v1.2.2 使用手册
style(put_loading(), 'width:4rem; height:4rem') 参数: 参数: content (str) – 代码内容 language (str) – 代码语言 rows (int) – 代码块最多可显示的文本行数,默认不限 制。内容超出时会使用滚动条。 scope, position (int) – 与 put_text 函数的同名参数含义 一致 pywebio brand (str): 设备品牌. 比如 ‘Apple’ device.model (str): 设备型号. 比如 ‘iPhone’ user_language (str): 用户操作系统使用的语言. 比如 'zh-CN' server_host (str): 当前会话的服务器host,包含域名和端口,端口 为80时可以被省略 origin (str): 当前用户的页面地址. 包含 协议、主机、端口 启动后台协程 数据可视化demo PyWebIO支持使用第三方库进行数据可视化,详情见 使用PyWebIO进行数据可 视化 其他 常用的Codemirror选项 mode (str): 代码语言。支持的语言有:https://codemirror.net/mode/index.html theme (str): 编辑器主题。可使用的主题: https://codemirror.net/demo/theme0 码力 | 119 页 | 7.41 MB | 1 年前3
共 48 条
- 1
- 2
- 3
- 4
- 5