PDA

View Full Version : How do I specify event callbacks from the application framework in Python?



Question
2011-07-03, 05:07
How do I specify event callbacks from the application framework in Python?

lianjasupport
2011-07-03, 05:10
Subclass the framework class, using the Lianja module and add in the callback code, e.g.

class myCommandButton(Lianja.CommandButton):
def click(self):
# ...

Then add an object based on the subclass

container.addobject("mybutton","myCommandButton")