Package mcbase :: Package widgets :: Module mccombobox :: Class MCComboBox
[hide private]
[frames] | no frames]

Class MCComboBox

source code


Instance Methods [hide private]
 
__init__(self, *args)
Creates an instance of MCComboBox
source code
 
set(self, inputPrm=None)
Common set method for MOCOP widgets.
source code
str
get(self)
Common get method for MOCOP widgets.
source code
 
clear(self)
Clear the items in the combobox
source code
 
setReadOnly(self, state)
Overriden setReadOnly method.
source code
 
init(self, inputPrm)
Common set method for MOCOP widgets.
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 MCComboBox

Overrides: object.__init__

set(self, inputPrm=None)

source code 

Common set method for MOCOP widgets.

Parameters:
  • inputPrm (str) - Determines the selected item

get(self)

source code 

Common get method for MOCOP widgets.

Returns: str
Returns the selected items key

setReadOnly(self, state)

source code 

Overriden setReadOnly method.

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

init(self, inputPrm)

source code 

Common set method for MOCOP widgets.

Parameters:
  • inputPrm (list) - Determines items of combobox.[(key, value), (key1, value1), ...] The last item, if exists and not tuple, is to be selected.