Revision: 2394
          http://smartbody.svn.sourceforge.net/smartbody/?rev=2394&view=rev
Author:   arishapiro
Date:     2011-08-23 23:42:50 +0000 (Tue, 23 Aug 2011)
Log Message:
-----------
Added Python interface for event handlers. Added 'BasicHandler' class that will 
do simple substitution of $1 parameters for use with: registerevent... 
functions.

Python Examples:

class MyEventHandler(EventHandler):
   def executeAction(self, event):
      str = event.getParameters()
      print "Now executing event with parameters " + str


myHandler = MyEventHandler()
m = getEventManager()
m.addEventHandler("someevent", myHandler)

Modified Paths:
--------------
    trunk/core/smartbody/sbm/src/resourceViewer/TreeItemInfoWidget.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/Event.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/Event.h
    trunk/core/smartbody/smartbody-lib/src/sbm/SbmPython.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/SbmPythonClass.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/SbmPythonClass.h
    trunk/core/smartbody/smartbody-lib/src/sbm/mcontrol_callbacks.cpp

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Smartbody-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartbody-svn

Reply via email to