4.59. umbra.ui.widgets.variable_QPushButton

variable_QPushButton.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the Variable_QPushButton class.

Others:

4.59.1. Module Attributes

umbra.ui.widgets.variable_QPushButton.LOGGER

4.59.2. Classes

class umbra.ui.widgets.variable_QPushButton.Variable_QPushButton(parent=None, state=True, colors=(<PyQt4.QtGui.QColor object at 0x109a89600>, <PyQt4.QtGui.QColor object at 0x109a89520>), labels=('Yes', 'No'))[source]

Bases: PyQt4.QtGui.QPushButton

This class is a QPushButton subclass providing a button with different colors and labels depending on its clicked state.

Parameters:
  • parent – Widget parent. ( QObject )
  • state – Current button state. ( Boolean )
  • colors – Button colors. ( Tuple )
  • labels – Button texts. ( Tuple )
state[source]

This method is the property for self.__state attribute.

Returns:self.__state. ( Boolean )
colors[source]

This method is the property for self.__colors attribute.

Returns:self.__colors. ( Tuple )
labels[source]

This method is the property for self.__labels attribute.

Returns:self.__labels. ( Tuple )

Table Of Contents

Previous topic

4.58. umbra.ui.widgets.search_QLineEdit

Next topic

5. Changes

This Page