From a918a86cabea73974144fbf8183f4b4d723d0c0c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 27 May 2006 20:30:08 +0000 Subject: doc/manual/usermanual.xml: Fix the EventHandler example The python method needs a closing brace. Add the missing one. --- doc/manual/usermanual.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/manual/usermanual.xml b/doc/manual/usermanual.xml index 33150b10f..e7942e9a3 100644 --- a/doc/manual/usermanual.xml +++ b/doc/manual/usermanual.xml @@ -205,6 +205,7 @@ python myclass_eventhandler() { print "The file we run for is %s" % data.getVar('FILE', e.data, True) return NotHandled +} This event handler gets called every time an event is triggered. A global variable e is defined. e.data contains an instance of bb.data. With the getName(e) method one can get the name of the triggered event.The above event handler prints the name -- cgit 1.2.3-korg