Page Contents

This Page

Html

class enaml.widgets.html.Html(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

An extremely simple widget for displaying HTML.

source = None

The Html source code to be rendered.

hug_width = None

How strongly a component hugs it’s contents’ width. Html widgets ignore the width hug by default, so they expand freely in width.

hug_height = None

How strongly a component hugs it’s contents’ height. Html widgets ignore the height hug by default, so they expand freely in height.

snapshot()[source]

Return the dictionary of creation attributes for the control.

bind()[source]

A method called after initialization which allows the widget to bind any event handlers necessary.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_html.QtHtml

class enaml.qt.qt_html.QtHtml(object_id, parent, session)[source]

Bases: enaml.qt.qt_control.QtControl

A Qt implementation of an Enaml HTML widget.

create_widget(parent, tree)[source]

Create the underlying html widget.

create(tree)[source]

Create and initialize the underlying widget.

on_action_set_source(content)[source]

Handle the ‘set_source’ action from the Enaml widget.

set_source(source)[source]

Set the source of the html widget

Wx

Inheritance diagram of enaml.wx.wx_html.WxHtml

class enaml.wx.wx_html.WxHtml(object_id, parent, session)[source]

Bases: enaml.wx.wx_control.WxControl

A Wx implementation of the Enaml Html widget.

create_widget(parent, tree)[source]

Create the underlying html widget.

create(tree)[source]

Create and initialize the html control.

on_action_set_source(content)[source]

Handle the ‘set_source’ action from the Enaml widget.

set_source(source)[source]

Set the source of the html widget