Package mcbase :: Package widgets :: Module mcpushbutton :: Class MCPushButton
[hide private]
[frames] | no frames]

Class MCPushButton

source code


push button, which is used in MC views

Instance Methods [hide private]
 
__init__(self, *args)
Disables the default action of the button, saves the background color, determines the focus color.
source code
 
focusInEvent(self, e) source code
 
focusOutEvent(self, e) source code
 
keyPressEvent(self, event)
Overrides the Key events of the PushButton
source code
 
getModelCode(self)
Returns modelCode (Inherited from mcbase.widgets.mcwidget.MCWidget)
source code
 
resetModelCode(self)
Resets the modelCode of the widget (Inherited from mcbase.widgets.mcwidget.MCWidget)
source code
 
setModelCode(self, modelCode=None)
Sets the modelCode of the widget (Inherited from mcbase.widgets.mcwidget.MCWidget)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 

Disables the default action of the button, saves the background color, determines the focus color.

Overrides: object.__init__

keyPressEvent(self, event)

source code 

Overrides the Key events of the PushButton

The clicked() signal is emitted when return is pressed. Therefore, the slot connected to the mouse clicked signal will be executed. There is no need to connect it manually several times.