enaml.widgets.progress_bar

Classes

ProgressBar

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

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

Bases: Control

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

minimum

The minimum progress value. If the minimum value is changed such that it becomes greater than the current value or the maximum value, then those values will be adjusted. The default is 0.

maximum

The maximum progress value. If the maximum value is changed such that it becomes smaller than the current value or the minimum value, then those values will be adjusted. The default is 100.

value

The position value of the Slider. The value will be clipped to always fall between the minimum and maximum.

percentage

A read only cached property which computes the integer percentage.

text_visible

Whether or not to display progress percentage on the control. This may not be supported by all toolkits and platforms.

hug_width

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

proxy

A reference to the ProxyProgressBar object.

get_percentage()[source]

The getter function for the read only percentage property.

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.