Page Contents

This Page

ProgressBar

class enaml.widgets.progress_bar.ProgressBar(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A control which displays a value as a ticking progress bar.

minimum = None

The minimum value that the progress bar can take. Extra checks take place to make sure that the user does not programmatically set minimum > maximum.

maximum = None

The maximum value that the progress bar can take. Extra checks take place to make sure that the user does not programmatically set minimum > maximum.

value = None

The current value. Default is the minimum value. The value is bounded between minimum and maximum. Changing the boundary attributes might result in an update of value to fit in the new range. Attempts to assign a value outside of these bounds will result in a TraitError.

percentage = None

The percentage completed, rounded to an integer. This is a readonly property for convenient use by other Components.

hug_width = None

How strongly a component hugs it’s content. ProgressBars expand to fill the available horizontal space by default.

snapshot()[source]

Returns the dict 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_progress_bar.QtProgressBar

class enaml.qt.qt_progress_bar.QtProgressBar(object_id, parent, session)[source]

Bases: enaml.qt.qt_control.QtControl

A Qt implementation of an Enaml ProgressBar.

create_widget(parent, tree)[source]

Create the underlying progress bar widget.

create(tree)[source]

Create and initialize the underlying widget.

on_action_set_minimum(content)[source]

Handle the ‘set_minimum’ action from the Enaml widget.

on_action_set_maximum(content)[source]

Handle the ‘set_maximum’ action from the Enaml widget.

on_action_set_value(content)[source]

Handle the ‘set_value’ action from the Enaml widget.

set_minimum(value)[source]

Set the minimum value of the progress bar

set_maximum(value)[source]

Set the maximum value of the progress bar

set_value(value)[source]

Set the value of the progress bar

Wx

Inheritance diagram of enaml.wx.wx_progress_bar.WxProgressBar

class enaml.wx.wx_progress_bar.WxProgressBar(object_id, parent, session)[source]

Bases: enaml.wx.wx_control.WxControl

A Wx implementation of an Enaml ProgressBar.

create_widget(parent, tree)[source]

Create the underlying wx.Gauge widget.

create(tree)[source]

Create and initialize the progress bar control.

on_action_set_minimum(content)[source]

Handle the ‘set_minimum’ action from the Enaml widget.

on_action_set_maximum(content)[source]

Handle the ‘set_maximum’ action from the Enaml widget.

on_action_set_value(content)[source]

Handle the ‘set_value’ action from the Enaml widget.

set_minimum(value)[source]

Set the minimum value of the progress bar

set_maximum(value)[source]

Set the maximum value of the progress bar

set_value(value)[source]

Set the value of the progress bar