/[fenfire]/fenfire/org/fenfire/demo/fenpdfcontext.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/fenpdfcontext.py

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

revision 1.1 by mudyc, Thu Jun 26 02:29:02 2003 UTC revision 1.2 by mudyc, Thu Jun 26 07:32:58 2003 UTC
# Line 8  def p(*s): Line 8  def p(*s):
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:
# Line 45  class SuperMethod: Line 37  class SuperMethod:
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:
# Line 87  class Context(ff.view.lava.FenPDFContext Line 77  class Context(ff.view.lava.FenPDFContext
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    

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

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