Package mcbase :: Package widgets :: Module mccheckbox :: Class MCCheckBox
[hide private]
[frames] | no frames]

Class MCCheckBox

source code


Instance Methods [hide private]
 
__init__(self, *args)
Creates an instance of MCCheckBox
source code
 
setSingleCharMode(self, mode=True)
Sets the single character mode of this checkbox.
source code
 
keyPressEvent(self, event)
Overrides the default action of the Enter and arrow keys
source code
 
set(self, inputPrm)
Common set method for MOCOP widgets.
source code
bool or str
get(self)
Common get method for MOCOP widgets.
source code
 
clear(self)
Sets the mode to the one defined by calling init()
source code
 
setReadOnly(self, state)
Overriden setReadOnly method.
source code
 
init(self, inputPrm)
Sets the default parameter for this widget.
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 

Creates an instance of MCCheckBox

Overrides: object.__init__

set(self, inputPrm)

source code 

Common set method for MOCOP widgets.

Parameters:
  • inputPrm (str or boolean) - Determines the state of checkbox. If given one of the following, it is set to checked state: ['True', 't', '1', 'true', 'TRUE', 'T']

get(self)

source code 

Common get method for MOCOP widgets.

Returns: bool or str
If this box is checked, returns True, False otherwise. If singleCharMode is in action then returns 't' or 'f'

setReadOnly(self, state)

source code 

Overriden setReadOnly method.

Parameters:
  • state (bool) - Widget to be read only?

init(self, inputPrm)

source code 

Sets the default parameter for this widget.

Parameters:
  • inputPrm (str) - Default parameter to be set.