class documentation

class IconsButton(Gtk.Button): (source)

View In Hierarchy

Need a button which can change icons. Use this instead of set_sensitive to show 'disabled'/'enabled' state because of the need to get signal for popup menu. For using only with one icon look for the standard IconButton from widgets.py.
Method __init__ No summary
Method blink Quickly change an icon to show that bookmark can't be added/changed.
Method change_state Change icon in the button. :param active: if True - 'enabled', False - 'disabled', if 'default' change state to another.
Instance Variable stock_disabled Undocumented
Instance Variable stock_enabled Undocumented
Instance Variable _enabled_state Undocumented
def __init__(self, stock_enabled, stock_disabled, relief=True, size=Gtk.IconSize.BUTTON): (source)
:param stock_enabled: the stock item for enabled state, :param stock_disabled: the stock item for disabled state, :param relief: when False the button has no visible raised, edge and will be flat against the background, :param size: the icons size
def blink(self): (source)
Quickly change an icon to show that bookmark can't be added/changed.
def change_state(self, active='default'): (source)
Change icon in the button. :param active: if True - 'enabled', False - 'disabled', if 'default' change state to another.
stock_disabled = (source)

Undocumented

stock_enabled = (source)

Undocumented

_enabled_state = (source)

Undocumented