/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26

« back to all changes in this revision

Viewing changes to svg_levels.py

  • Committer: Josh C
  • Date: 2013-04-28 23:14:19 UTC
  • Revision ID: josh@9ix.org-20130428231419-930dlct49eh71pr8
gate

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
},
59
59
""" % (x,y)
60
60
 
61
 
    sel = CSSSelector('svg|rect[ink|label="cat"]', ns)
62
 
    for e in sel(t):
63
 
        x, y = float(e.get('x')), float(e.get('y'))
64
 
 
65
 
        print """
66
 
Cat:new{
67
 
  x = %f, y = %f,
68
 
},
69
 
""" % (x,y)
70
 
 
71
61
    sel = CSSSelector('svg|rect[ink|label="fish"]', ns)
72
62
    for e in sel(t):
73
63
        x, y = float(e.get('x')), float(e.get('y'))