This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from optparse import (OptionParser,BadOptionError,AmbiguousOptionError) | |
class PassThroughOptionParser(OptionParser): | |
""" | |
An unknown option pass-through implementation of OptionParser. | |
When unknown arguments are encountered, bundle with largs and try again, | |
until rargs is depleted. | |
sys.exit(status) will still be called if a known argument is passed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass(GeneratedClass): | |
def __init__(self): | |
GeneratedClass.__init__(self) | |
def onLoad(self): | |
#put initialization code here | |
self.id = None | |
def onUnload(self): | |
#put clean-up code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass(GeneratedClass): | |
def __init__(self): | |
GeneratedClass.__init__(self) | |
def onLoad(self): | |
self.reco = ALProxy("ALVisionRecognition") | |
self.fmgr = ALProxy("ALFrameManager") | |
def onUnload(self): | |
pass |