comparison pyink/frameline.py @ 1128:b65ac686a7c5

Switch to the DOM-like API. The SPObject become the base of the DOM-like API.
author wycc
date Sat, 18 Dec 2010 09:00:55 +0800
parents 214e1f628d63
children 3ec0ad89e443
comparison
equal deleted inserted replaced
1127:baf4c4d48cff 1128:b65ac686a7c5
664 ss.setAttribute("end", str(self._keys[i+1].idx+1),True) 664 ss.setAttribute("end", str(self._keys[i+1].idx+1),True)
665 if self._keys[i].right_tween_type == self._tween_type_none: 665 if self._keys[i].right_tween_type == self._tween_type_none:
666 ss.setAttribute("type", "normal", True) 666 ss.setAttribute("type", "normal", True)
667 elif self._keys[i].right_tween_type == self._tween_type_move: 667 elif self._keys[i].right_tween_type == self._tween_type_move:
668 ss.setAttribute("type", "relocate", True) 668 ss.setAttribute("type", "relocate", True)
669 elif self._keys[i].right_tween_type == self._tween_type_scale: 669 elif self._keys[i].right_tween_type == self._tween_type_shape:
670 ss.setAttribute("type", "scale", True) 670 ss.setAttribute("type", "scale", True)
671 else: 671 else:
672 ss = rdoc.createElement("ns0:scene") 672 ss = rdoc.createElement("ns0:scene")
673 node.appendChild(ss) 673 node.appendChild(ss)
674 ss.setAttribute("start", str(key.idx+1),True) 674 ss.setAttribute("start", str(key.idx+1),True)