Page Contents

This Page

WebView

class enaml.widgets.web_view.WebView(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A widget which displays a web page.

Unlike the simpler Html widget, this widget supports the features of a full web browser.

url = None

The URL to load in the web view. This can be a path to a remote resource or a path to a file on the local filesystem. This value is mutually exclusive of html.

html = None

The html to load into the web view. This value is mutually exclusive of url.

hug_width = None

A web view expands freely in height and width by default.

snapshot()[source]

Create the snapshot for the widget.

bind()[source]

Bind the change handlers for the widget.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_web_view.QtWebView

class enaml.qt.qt_web_view.QtWebView(object_id, parent, session)[source]

Bases: enaml.qt.qt_control.QtControl

A Qt implementation of an Enaml WebView.

create_widget(parent, tree)[source]

Create the underlying QWebView control.

create(tree)[source]

Create and initialize the underlying control.

on_action_set_url(content)[source]

Handle the ‘set_url’ action from the Enaml widget.

on_action_set_html(content)[source]

Handle the ‘set_html’ action from the Enaml widget.

set_url(url)[source]

Set the url for the underlying control.

set_html(html)[source]

Set the html source for the underlying control.

Wx