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

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

     1  import pyforms.Utils.tools as tools
     2  from pyforms.web.Controls.ControlBase import ControlBase
     3
     4 -class ControlButton(ControlBase):
     5
     6 -    def initControl(self): return "controls.push(new ControlButton('%s', '%s','%s'));" % ( self._label, self._name, self.help )
     7
     8 -    def pressed(self):
     9          """
    10          This event is called when the button is pressed.
    11          The correspondent js event is defined in the framework.js file
    12          """
    13          self._value()
    14