class WebView (url: None = None, html: None = None, open_bridge: bool = True, open_inspector: bool = False, name: str | None = None, visible: bool = True, all_visible: bool = False, style: str | None = None, style_classes: Iterable[str] | str | None = None, tooltip_text: str | None = None, tooltip_markup: str | None = None, h_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, v_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, h_expand: bool = False, v_expand: bool = False, size: Iterable[int] | int | None = None, **kwargs)
class WebView (url: str | None = None, html: None = None, open_bridge: bool = True, open_inspector: bool = False, name: str | None = None, visible: bool = True, all_visible: bool = False, style: str | None = None, style_classes: Iterable[str] | str | None = None, tooltip_text: str | None = None, tooltip_markup: str | None = None, h_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, v_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, h_expand: bool = False, v_expand: bool = False, size: Iterable[int] | int | None = None, **kwargs)
class WebView (url: None = None, html: str | None = None, open_bridge: bool = True, open_inspector: bool = False, name: str | None = None, visible: bool = True, all_visible: bool = False, style: str | None = None, style_classes: Iterable[str] | str | None = None, tooltip_text: str | None = None, tooltip_markup: str | None = None, h_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, v_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, h_expand: bool = False, v_expand: bool = False, size: Iterable[int] | int | None = None, **kwargs)
Bases: WebView
, Widget
a widget for loading a web page, it can load local and remote pages
it provides a bridge to communicate with python from javascript (and vice versa)
.bridge
this object will hold a field for interacting with the javascript
bridge, the field name is bridge, it will be set only if you set open_bridge to True
otherwise it will be set to None
exposing functions
to expose a python function you can use the method expose_function which’s a member of the bridge field
security warning
using the bridge with non-local pages is not recommended for security reasons