/[circus]/circus/modules/CircusKeybindings/keybindings.py
ViewVC logotype

Diff of /circus/modules/CircusKeybindings/keybindings.py

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

revision 1.10 by tvon, Mon Nov 18 04:04:51 2002 UTC revision 1.11 by tvon, Tue Nov 19 04:30:37 2002 UTC
# Line 31  class MyModule(module.Module): Line 31  class MyModule(module.Module):
31    
32      def load(self):      def load(self):
33          #foo = KeyBinding(XK.string_to_keysym("F"))          #foo = KeyBinding(XK.string_to_keysym("F"))
34          foo = KeyBinding(XK.XK_Alt_L)          foo = KeyBinding(XK.XK_Alt_L, 'win_move')
35          self.keys.append(foo)          self.keys.append(foo)
36    
37      def handle_event(self,event):      def handle_event(self,event):
# Line 53  class MyModule(module.Module): Line 53  class MyModule(module.Module):
53    
54          for i in range(len(self.keys)):          for i in range(len(self.keys)):
55              if self.keys[i].keysym == keysym:              if self.keys[i].keysym == keysym:
56                  sys.stderr.write("Keymatch\n")                  print "foo"
57                  self.wm_actions.call_action('exec', "/usr/bin/rxvt", "-fg", "red")                  self.wm_actions.call_action(self.keys[i].action, event.root_x, event.root_y)
58                            
59                    #win = self.display.create_resource_object('window', self.display.get_input_focus().focus)
60                    #print win
61                    #self.wm_actions.call_action('win_move_right', win, "10")
62                    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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