PyWebIO v1.5.2 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.0 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.5.0 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.3 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.7.1 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 127 页 | 1.73 MB | 1 年前3PyWebIO v1.5.1 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.7.0 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.1 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.6.2 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.1.0 使用手册
显示一个加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope Documentation PyWebIO, 发布 1.1.0 其中,value 可以为任意可 json 序列化的对象。使用 dict 类型的列表项时,支持使用 color key 设置按钮颜色,可选值为 primary 、secondary 、success 、danger 、warning 、info 、light 、dark 例如: put_buttons([dict(label='primary' (str) –通知消息显示的位置,可以为 'left' / 'center' / 'right' • color (str) –通知消息的背景颜色,可以为 'info' / 'error' / 'warn' / 'success' 或以 '#' 开始的十六进制颜色值 • onclick (callable) –点击通知消息时的回调函数,回调函数不接受任何参数。 Note: 当使用基于协程的会话实现0 码力 | 98 页 | 1.73 MB | 1 年前3
共 65 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7