Esempio n. 1
0
 def __init__(self, canvas, coord):
     gModule.__init__(self, canvas, coord, "logic.gui.lamp", [])
     self._state = False
     
     self._in_pin = gPin(self, "i_in")
     
     self.setSize( (12,7) )
     self._apply_position_rules()
Esempio n. 2
0
 def __init__(self, canvas, coord):
     gModule.__init__(self, canvas, coord, "logic.gui.button", [])
     self._state = False
     self.o_out = edef.ValueOutput(False)
    
     self._out_pin = gPin(self, "o_out")
     
     self.setSize( (12,7) )
     self._apply_position_rules()