FletApp
Renders another Flet app in the current app, similar to HTML IFrame, but for Flet.
Inherits: LayoutControl
Properties
app_error_message- Template message to display when the app fails to load.app_startup_screen_message- Message to display on the app startup screen.args- Optional dictionary of arguments to pass to the Flet app.force_pyodide- Whether to force the use of Pyodide.reconnect_interval_ms- Delay, in milliseconds, between reconnection attempts.reconnect_timeout_ms- Total time to try reconnecting.show_app_startup_screen- Whether to show the app startup screen.url- Flet app URL, e.g.
Events
on_error- Called when a connection or any unhandled error occurs.
Properties
app_error_messageclass-attributeinstance-attribute
app_error_message: Optional[str] = NoneTemplate message to display when the app fails to load.
Use {message} placeholder to include the error message
and {details} to include error details.
app_startup_screen_messageclass-attributeinstance-attribute
app_startup_screen_message: Optional[str] = NoneMessage to display on the app startup screen.
argsclass-attributeinstance-attribute
args: Optional[dict[str, Any]] = NoneOptional dictionary of arguments to pass to the Flet app.
force_pyodideclass-attributeinstance-attribute
force_pyodide: bool = FalseWhether to force the use of Pyodide.
reconnect_interval_msclass-attributeinstance-attribute
reconnect_interval_ms: Optional[int] = NoneDelay, in milliseconds, between reconnection attempts.
reconnect_timeout_msclass-attributeinstance-attribute
reconnect_timeout_ms: Optional[int] = NoneTotal time to try reconnecting.
show_app_startup_screenclass-attributeinstance-attribute
show_app_startup_screen: bool = FalseWhether to show the app startup screen.
urlclass-attributeinstance-attribute
url: Optional[str] = NoneFlet app URL, e.g. http://localhost:8550 or flet.sock.
Events
on_errorclass-attributeinstance-attribute
on_error: Optional[ControlEventHandler[FletApp]] = NoneCalled when a connection or any unhandled error occurs.