taipy.gui.Page
Bases: ABC
Generic page generator.
The Page
class transforms template text into actual pages that can be displayed
on a Web browser.
When a page is requested to be displayed, it is converted into HTML code that can be sent to the client. All control placeholders are replaced by their respective graphical component so you can show your application variables and interact with them.
__init__(content, **kwargs)
¶
Initialize a new Page with the indicated content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content |
str
|
The text content or the path to the file holding the text to be transformed. |
required |
If content is a path to a readable file, the file is read entirely as the text template.
set_content(content)
¶
Set a new page content.
Reads the new page content and reinitializes the page to reflect the change.
Important
This function can only be used an IPython notebook context.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content |
str
|
The text content or the path to the file holding the text to be transformed. If content is a path to a readable file, the file is read entirely as the text template. |
required |
Raises:
Type | Description |
---|---|
RuntimeError
|
If this method is called outside an IPython notebook context. |