Hi, it's me again :)
Just got an email saying that it might be beneficial if I also posted
the code that caught the Form button click event, so here goes
I place this code down at the bottom of Python file, where you
register the Robot Added events etc.
The one you want is events.FORM_BUTTON_CLICKED
OnFormButton is the Python def that I listed earlier.
[code]
if __name__ == '__main__':
myRobot = robot.Robot(ROBOT_NAME.capitalize(),
image_url='http://%
s.appspot.com/assets/kbot.gif' %
ROBOT_NAME,
version=ROBOT_VERSION,
profile_url='http://%
s.appspot.com/' % ROBOT_NAME)
myRobot.RegisterHandler(events.WAVELET_PARTICIPANTS_CHANGED,
OnParticipantsChanged)
myRobot.RegisterHandler(events.WAVELET_SELF_ADDED, OnRobotAdded)
myRobot.RegisterHandler(events.BLIP_SUBMITTED, OnBlipSubmitted)
myRobot.RegisterHandler(events.FORM_BUTTON_CLICKED, OnFormButton)
myRobot.Run()
[/code]
Regards
Anthoni