![]() Inline ( bool) – Use text as an inline element (no line break at the end of the text). Sep ( str) – The separator between the texts ![]() The type can be any object, and the str() function will be used for non-string objects. put_text ( * texts, sep = ' ', inline = False, scope = None, position = - 1 ) → pywebio.io_ctrl.Output ¶ With use_scope ( 'scope1' ): 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 'bottom' : Keep the scope at the bottom of the visible area of the page 'middle' : Keep the scope at the middle of the visible area of the page 'top' : Keep the scope at the top of the visible area of the page Where to place the scope in the visible area of the page. Scroll the page to the specified scope Parameters scroll_to ( scope = None, position = 'top' ) ¶ clear ( scope = None ) ¶Ĭlear the content of the specified scope Parameters Returns the scope name with the index, and returns None when occurs index error pywebio.output. 2 means the scope used before entering the current scope, … Returns Default is -1.Ġ means the top level scope(the ROOT Scope), Get the scope name of runtime scope stack Parameters
0 Comments
Leave a Reply. |