8 |
print 'actions.py::', s |
print 'actions.py::', s |
9 |
|
|
10 |
|
|
|
##### All super code is copied from Kragen Sitaker's post in |
|
|
##### http://lists.canonical.org/pipermail/kragen-hacks/2000-October/000273.html |
|
|
##### |
|
|
##### This code is not under lisence before it is rewritten by another super |
|
|
##### from scratch or we have permissions to use this code. |
|
|
|
|
|
# This hack makes it so you only have to change it in two places: in the class |
|
|
# declaration and in the __init__ method. |
|
11 |
|
|
12 |
# mixin interface for superclass proxy creation |
# mixin interface for superclass proxy creation |
13 |
class SuperCaller: |
class SuperCaller: |
37 |
nargs.insert(0, self.instance) |
nargs.insert(0, self.instance) |
38 |
return apply(self.method, nargs, argdict) |
return apply(self.method, nargs, argdict) |
39 |
|
|
|
######################################################################## |
|
|
|
|
40 |
|
|
41 |
|
|
42 |
class KeyHandler: |
class KeyHandler: |
77 |
def key(self, key): |
def key(self, key): |
78 |
if self.keys.key(key): return |
if self.keys.key(key): return |
79 |
else: self.super.handleKeyStroke(key, self.mgr.getLastMain()) |
else: self.super.handleKeyStroke(key, self.mgr.getLastMain()) |
80 |
|
|