enaml.widgets.status_bar

Classes

StatusBar

A widget used as a status bar in a MainWindow.

class enaml.widgets.status_bar.StatusBar(parent=None, **kwargs)[source]

Bases: Widget

A widget used as a status bar in a MainWindow.

A status bar can be used to display temporary messages or display persistent widgets by declaring StatusItem children.

size_grip_enabled

Whether or not the size grip in the right corner is enabled.

proxy

A reference to the ProxyStatusBar object.

status_items()[source]

Get the list of status items defined on the status bar.

show_message(message, timeout=0)[source]

Show a temporary message in the status bar.

Parameters:
  • message (unicode) – The message to show in the status bar.

  • timeout (int, optional) – The number of milliseconds to show the message. The default is 0, which will show the message until a new message is shown or ‘clear_message()’ is called.

clear_message()[source]

Clear any temporary message displayed in the status bar.

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.