/ld26

To get this branch, use:
bzr branch /bzr/ld26

« back to all changes in this revision

Viewing changes to svg_levels.py

  • Committer: Josh C
  • Date: 2013-04-28 05:19:04 UTC
  • Revision ID: josh@9ix.org-20130428051904-7j0sucv9tm8rqdkf
inventory (and a flower)

Show diffs side-by-side

added added

removed removed

46
46
},
47
47
""" % (x,y,w,h, desc)
48
48
 
 
49
    sel = CSSSelector('svg|rect[ink|label="flower"]', ns)
 
50
    for e in sel(t):
 
51
        x, y = float(e.get('x')), float(e.get('y'))
 
52
 
 
53
        print """
 
54
Flower:new{
 
55
  x = %f, y = %f,
 
56
},
 
57
""" % (x,y)
 
58
 
49
59
    print '},'
50
60
 
51
61
print '}'