PyWebIO v1.3.3 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique the scope will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: with use_scope('A'): put_text('Text in scope put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.1 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique the scope will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: with use_scope('A'): put_text('Text in scope put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.0 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique the scope will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: with use_scope('A'): put_text('Text in scope put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.2 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique the scope will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: with use_scope('A'): put_text('Text in scope put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.2 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique now()) will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: The above code will generate the following put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.0 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique now()) will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: The above code will generate the following put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.1 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique now()) will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: The above code will generate the following put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.3 Documentationoutput its content to a scope, the default is “current scope”. “current scope” is determined by the runtime context. The output function can also manually specify the scope to output. The scope name is unique now()) will be reduced by one. PyWebIO uses the Scope stack to save the scope nesting level at runtime. For example, the following code will create 3 scopes: The above code will generate the following put_xxx()) will output the content to the “current scope” by default, and the “current scope” of the runtime context can be set by use_scope(). In addition, you can use the scope parameter of the output function0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.6.1 Documentationput_scope Create a new scope use_scope† Enter a scope get_scope Get the current scope name in the runtime scope stack clear Clear the content of scope remove Remove the scope scroll_to Scroll the page pywebio.output.get_scope(stack_idx=- 1) Get the scope name of runtime scope stack Parameters stack_idx (int) – The index of the runtime scope stack. Default is -1. 0 means the top level scope(the ROOT function will output the content to the “current scope” by default, and the “current scope” for the runtime context can be set by use_scope(). In addition, all output functions support a scope parameter to0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.2 Documentationput_scope Create a new scope use_scope† Enter a scope get_scope Get the current scope name in the runtime scope stack clear Clear the content of scope remove Remove the scope scroll_to Scroll the page pywebio.output.get_scope(stack_idx=- 1) Get the scope name of runtime scope stack Parameters stack_idx (int) – The index of the runtime scope stack. Default is -1. 0 means the top level scope(the ROOT function will output the content to the “current scope” by default, and the “current scope” for the runtime context can be set by use_scope(). In addition, all output functions support a scope parameter to0 码力 | 108 页 | 1.37 MB | 1 年前3
共 76 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













