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): |
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 |
|
|