FletApp
Inherits: LayoutControl
Renders another Flet app in the current app, similar to HTML IFrame, but for Flet.
Properties
-
app_error_message(str | None) –Template message to display when the app fails to load.
-
app_startup_screen_message(str | None) –Message to display on the app startup screen.
-
args(dict[str, Any] | None) –Optional dictionary of arguments to pass to the Flet app.
-
force_pyodide(bool) –Whether to force the use of Pyodide.
-
reconnect_interval_ms(int | None) –Delay, in milliseconds, between reconnection attempts.
-
reconnect_timeout_ms(int | None) –Total time to try reconnecting.
-
show_app_startup_screen(bool) –Whether to show the app startup screen.
-
url(str | None) –Flet app URL, e.g.
http://localhost:8550orflet.sock.
Events
-
on_error(ControlEventHandler[FletApp] | None) –Called when a connection or any unhandled error occurs.
Properties#
app_error_message
class-attribute
instance-attribute
#
app_error_message: str | None = None
Template 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_message
class-attribute
instance-attribute
#
app_startup_screen_message: str | None = None
Message to display on the app startup screen.
args
class-attribute
instance-attribute
#
Optional dictionary of arguments to pass to the Flet app.
force_pyodide
class-attribute
instance-attribute
#
force_pyodide: bool = False
Whether to force the use of Pyodide.
reconnect_interval_ms
class-attribute
instance-attribute
#
reconnect_interval_ms: int | None = None
Delay, in milliseconds, between reconnection attempts.
reconnect_timeout_ms
class-attribute
instance-attribute
#
reconnect_timeout_ms: int | None = None
Total time to try reconnecting.
show_app_startup_screen
class-attribute
instance-attribute
#
show_app_startup_screen: bool = False
Whether to show the app startup screen.
url
class-attribute
instance-attribute
#
url: str | None = None
Flet app URL, e.g. http://localhost:8550 or flet.sock.
Events#
on_error
class-attribute
instance-attribute
#
on_error: ControlEventHandler[FletApp] | None = None
Called when a connection or any unhandled error occurs.