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

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

     1  from pyforms.terminal.Controls.ControlBase import ControlBase
     2
     3 -class ControlButton(ControlBase):
     4
     5 -    def initControl(self): return "controls.push(new ControlButton('%s', '%s'));" % ( self._label, self._name )
     6
     7
     8 -    def load(self, data):
     9          pass
    10
    11 -    def save(self, data):
    12          pass
    13
    14 -    def pressed(self): self._value()
    15
    16      ############################################################################
    17
    18      @property
    19 -    def label(self): return ControlBase.lable.fget(self)
    20
    21      @label.setter
    22 -    def label(self, value):  ControlBase.label.fset(self, value)
    23
    24      ############################################################################
    25
    26      @property
    27 -    def value(self): return None
    28
    29      @value.setter
    30 -    def value(self, value):  self._value = value
    31