Mercurial > MadButterfly
comparison pyink/domview.py @ 1427:5b69baa49a8b
Abandon head #6fa411fd9549
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 10 Apr 2011 12:07:26 +0800 |
parents | 3519f43da037 |
children | 43369f3314d8 |
comparison
equal
deleted
inserted
replaced
1426:5487aaf6f863 | 1427:5b69baa49a8b |
---|---|
319 try: | 319 try: |
320 nlabel = n.getAttribute('inkscape:label') | 320 nlabel = n.getAttribute('inkscape:label') |
321 except: | 321 except: |
322 continue | 322 continue |
323 if nlabel == 'components': | 323 if nlabel == 'components': |
324 self._components_group | 324 self._components_group = n |
325 break | 325 break |
326 pass | 326 pass |
327 else: # no components group | 327 else: # no components group |
328 components_group = self._doc.createElement('svg:g') | 328 components_group = self._doc.createElement('svg:g') |
329 components_group.setAttribute('inkscape:label', 'components') | 329 components_group.setAttribute('inkscape:label', 'components') |