class MyClass(GeneratedClass):
def __init__(self):
GeneratedClass.__init__(self)
self.number=-1
self.flag=fales
def onLoad(self):
#~ puts code for box initialization here
pass
def onUnload(self):
#~ puts code for box cleanup here
pass
def onInput_onStart(self, p):
if(p > 0and self.flag):
self.onStopped() #~ activate output of the box
self.number=-1
self.flag=false
pass
def onInput_onStop(self):
self.onUnload() #~ it is usually a good idea to call onUnload of this box in a onStop method, as the code written in onUnload is used to finish the working of the box as well
pass
def onInput_oninputnum(self, rVal):
self.number=rVal
self.flag=true
def __init__(self):
GeneratedClass.__init__(self)
self.number=-1
self.flag=fales
def onLoad(self):
#~ puts code for box initialization here
pass
def onUnload(self):
#~ puts code for box cleanup here
pass
def onInput_onStart(self, p):
if(p > 0and self.flag):
self.onStopped() #~ activate output of the box
self.number=-1
self.flag=false
pass
def onInput_onStop(self):
self.onUnload() #~ it is usually a good idea to call onUnload of this box in a onStop method, as the code written in onUnload is used to finish the working of the box as well
pass
def onInput_oninputnum(self, rVal):
self.number=rVal
self.flag=true