Package pyforms :: Package terminal :: Package Controls :: Module ControlCheckBox |
[hide private]
[frames] | no frames]

# Source Code for Module pyforms.terminal.Controls.ControlCheckBox

     1
     2  from pyforms.terminal.Controls.ControlBase import ControlBase
     3
     4 -class ControlCheckBox(ControlBase):
     5
     6 -    def initControl(self):
     7          self._items = {}
     8          self._addingItem = False
     9          return "controls.push(new ControlCheckBox('%s','%s'));" % (self._label, self._name)
    10
    11
    12 -    def isChecked(self): return self._value
    13
    14 -    def checkedToggle(self, value):  self._value=value
    15
    16      @property
    17 -    def value(self): return self._value
    18
    19      @value.setter
    20 -    def value(self, value): ControlBase.value.fset(self, (value=='True' or value==True) )
    21