/[gzz]/gzz/gfx/demo/nic/stencil.py
ViewVC logotype

Diff of /gzz/gfx/demo/nic/stencil.py

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

revision 1.2 by benja, Fri Sep 13 18:24:25 2002 UTC revision 1.3 by benja, Fri Sep 13 18:29:02 2002 UTC
# Line 17  class StencilBugScene: Line 17  class StencilBugScene:
17      def key(self, key): pass      def key(self, key): pass
18    
19      def scene(self, vs):      def scene(self, vs):
20            putnoc(vs, background((1,1,1)))
21    
22          outer = vs.coords.coordsys(0, 'o', 1, 10, 10, 50, 20)          outer = vs.coords.coordsys(0, 'o', 1, 10, 10, 50, 20)
23          inner = vs.coords.coordsys(outer, 'i', 1, 5, 5, 40, 10)          inner = vs.coords.coordsys(outer, 'i', 1, 5, 5, 40, 10)
24    
25          rect = RectBgVob()          rect = RectBgVob()
26          style = GraphicsAPI.getTextStyle("serif", 0, 12)          style = GraphicsAPI.getInstance().getTextStyle("serif", 0, 12)
27          t = TextVob(style,          t = TextVob(style,
28                  "This text is unfortunately NOT shown clippedly clap.")                  "This text is unfortunately NOT shown clippedly clap.")
29          vs.map.put(rect, outer)          vs.map.put(rect, outer)
# Line 32  class StencilBugScene: Line 34  class StencilBugScene:
34              None,              None,
35              R(lambda vs=vs, inner=inner, t=t: vs.map.put(t, inner)), 0              R(lambda vs=vs, inner=inner, t=t: vs.map.put(t, inner)), 0
36          )          )
37    
38    
39    currentScene = StencilBugScene()

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

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