PyWebIO v1.3.1 使用手册hobby.append('Music', put_text('Drama')) # append Music, Drama to hobby hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the␣ �→hobby 上下文管理器 一些接受 put_xxx() 调用作为参数的输出函数支持作为上下文管理器来使用: put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A 输出域控制函数 除了 use_scope() required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数 • label (str) –输入框标签 • type (str) –输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 111 页 | 1.70 MB | 1 年前3
PyWebIO v1.3.3 使用手册hobby.append('Music', put_text('Drama')) # append Music, Drama to hobby hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the␣ �→hobby 上下文管理器 一些接受 put_xxx() 调用作为参数的输出函数支持作为上下文管理器来使用: put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A 输出域控制函数 除了 use_scope() required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数 • label (str) –输入框标签 • type (str) –输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 111 页 | 1.70 MB | 1 年前3
PyWebIO v1.3.2 使用手册hobby.append('Music', put_text('Drama')) # append Music, Drama to hobby hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the␣ �→hobby 上下文管理器 一些接受 put_xxx() 调用作为参数的输出函数支持作为上下文管理器来使用: put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A 输出域控制函数 除了 use_scope() required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数 • label (str) –输入框标签 • type (str) –输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 111 页 | 1.70 MB | 1 年前3
PyWebIO v1.3.0 使用手册hobby.append('Music', put_text('Drama')) # append Music, Drama to hobby hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the␣ �→hobby 上下文管理器 一些接受 put_xxx() 调用作为参数的输出函数支持作为上下文管理器来使用: put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A 输出域控制函数 除了 use_scope() required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数 • label (str) –输入框标签 • type (str) –输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 111 页 | 1.70 MB | 1 年前3
PyWebIO v1.3.1 使用手册此外,PyWebIO还支持事件回调:PyWebIO允许你输出一些控件并绑定回调函 数,当控件被点击时相应的回调函数便会被执行。 下面是一个例子: hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the hobby with put_collapse('This is title'): put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A PyWebIO在输出内容时 required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: label (str) – 输入框标签 type (str) – 输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 132 页 | 7.45 MB | 1 年前3
PyWebIO v1.3.3 使用手册此外,PyWebIO还支持事件回调:PyWebIO允许你输出一些控件并绑定回调函 数,当控件被点击时相应的回调函数便会被执行。 下面是一个例子: hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the hobby with put_collapse('This is title'): put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A PyWebIO在输出内容时 required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: label (str) – 输入框标签 type (str) – 输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 132 页 | 7.45 MB | 1 年前3
PyWebIO v1.4.0 使用手册此外,PyWebIO还支持事件回调:PyWebIO允许你输出一些控件并绑定回调函 数,当控件被点击时相应的回调函数便会被执行。 下面是一个例子: hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the hobby with put_collapse('This is title'): required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: label (str) – 输入框标签 type (str) – 输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见 CN/docs/Web/HTML/Element/input#%E5%B1%9E%E6% 0%A7 options (list) – 可选项列表。列表项的可用形式有: dict: { "label":(str) 选项标签, "value":(object) 选项值, "selected":(bool, optional) 是否默认选中, "disabled":(bool, optional) 是否禁止选中0 码力 | 135 页 | 7.45 MB | 1 年前3
PyWebIO v1.3.0 使用手册此外,PyWebIO还支持事件回调:PyWebIO允许你输出一些控件并绑定回调函 数,当控件被点击时相应的回调函数便会被执行。 下面是一个例子: hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the hobby with put_collapse('This is title'): put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A PyWebIO在输出内容时 required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: label (str) – 输入框标签 type (str) – 输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 132 页 | 7.45 MB | 1 年前3
PyWebIO v1.3.2 使用手册此外,PyWebIO还支持事件回调:PyWebIO允许你输出一些控件并绑定回调函 数,当控件被点击时相应的回调函数便会被执行。 下面是一个例子: hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the hobby with put_collapse('This is title'): put_text('A') put_text('B', position=0) # insert B before A -> B A put_text('C', position=-2) # insert C after B -> B C A put_text('D', position=1) # insert D before C B -> B D C A PyWebIO在输出内容时 required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: label (str) – 输入框标签 type (str) – 输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见0 码力 | 132 页 | 7.45 MB | 1 年前3
PyWebIO v1.4.0 使用手册hobby.append('Music', put_text('Drama')) # append Music, Drama to hobby hobby.insert(0, put_markdown('**Coding**')) # insert the Coding into the top of the␣ �→hobby 上下文管理器 一些接受 put_xxx() 调用作为参数的输出函数支持作为上下文管理器来使用: required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数 • label (str) –输入框标签 • type (str) –输入类型. 可使用的常量:TEXT , NUMBER , FLOAT , PASSWORD , URL , DATE , TIME 其中 DATE , TIME 类型在某些浏览器上不被支持,详情见 默认单选,可以通过设置 multiple 参数来允许多选 参数 • options (list) –可选项列表。列表项的可用形式有: – dict: { "label":(str) 选项标签, "value":(object) 选项值, "selected":(bool, optional) 是否默认选中, "disabled":(bool, optional) 是否禁止选中 }0 码力 | 115 页 | 1.70 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













