/[circus]/circus/modules/CircusExample/example.py
ViewVC logotype

Diff of /circus/modules/CircusExample/example.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tvon, Sat Nov 16 03:55:29 2002 UTC revision 1.3 by tvon, Sat Nov 16 13:43:55 2002 UTC
# Line 42  class MyModule(module.Module): Line 42  class MyModule(module.Module):
42      # This will be called by Ringmaster whenever one of my_events has been      # This will be called by Ringmaster whenever one of my_events has been
43      # received.      # received.
44      def handle_event(self, event):      def handle_event(self, event):
45          pass          # http://python-xlib.sourceforge.net/doc/html/python-xlib_10.html#SEC9
46            if event.type == X.KeyPress:
47                print "Example received X.KeyPress"
48                
49            if event.type == X.KeyRelease:
50                print "Example received X.KeyRelease"
51    
52    
53    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26