/[gzz]/gzz/gfx/demo/xupdf.py
ViewVC logotype

Diff of /gzz/gfx/demo/xupdf.py

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

revision 1.4 by tjl, Wed Sep 18 07:20:06 2002 UTC revision 1.5 by tjl, Wed Sep 18 07:38:29 2002 UTC
# Line 96  def bg(vs): Line 96  def bg(vs):
96    
97  class XuPDFScene_PDFContext:  class XuPDFScene_PDFContext:
98      def __init__(self):      def __init__(self):
99          self.yheight = 100          self.yheight = 50
100      def key(self, key):      def key(self, key):
101          global currentScene          global currentScene
102          if key == 'z':          if key == 'z':
# Line 112  class XuPDFScene_PDFContext: Line 112  class XuPDFScene_PDFContext:
112      def scene(self, vs):      def scene(self, vs):
113          bg(vs)          bg(vs)
114          print "Context"          print "Context"
115          cs2 = vs.coords.affineCoordsys(0, "2", 2,          cs2 = vs.coords.affineCoordsys(0, "2", -3,
116                  screensize[0]/2, 0.9 * screensize[1]/2, 50, 0,0,50)                  screensize[0]/2, 0.9 * screensize[1]/2, 50, 0,0,50)
117    
118          placepapers(vs, cs2, globalpap, "foo",          placepapers(vs, cs2, globalpap, "foo",

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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