# enaml.widgets.web_view

Classes

`WebView` | A widget which displays a web page.

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

  Bases: `Control`

  A widget which displays a web page.

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

  url

    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

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

  base_url

    The base url for loading content in statically supplied ‘html’.

  hug_width

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

  hug_height

    How strongly a widget hugs it’s height hint. This is equivalent to the constraint:

        (height == hint) | hug_height

  proxy

    A reference to the ProxyWebView object.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.