Mercurial > MadButterfly
comparison pyink/MBScene.py @ 982:1bda9f9e00ea
Set the inkscape:groupmode attribute so that the inkscape will put the scene groups in the layer manager and protect it from detection.
author | wycc |
---|---|
date | Sun, 21 Nov 2010 08:43:02 +0800 |
parents | 9e7865906bfc |
children | ee31add87843 |
comparison
equal
deleted
inserted
replaced
981:9e7865906bfc | 982:1bda9f9e00ea |
---|---|
257 txt.setAttribute("y","0",True) | 257 txt.setAttribute("y","0",True) |
258 txt.setAttribute("width","100",True) | 258 txt.setAttribute("width","100",True) |
259 txt.setAttribute("height","100",True) | 259 txt.setAttribute("height","100",True) |
260 txt.setAttribute("style","fill:#ff00",True) | 260 txt.setAttribute("style","fill:#ff00",True) |
261 ns.appendChild(txt) | 261 ns.appendChild(txt) |
262 gid = self.newID() | 262 gid = self.last_line.node.label()+self.newID() |
263 self.ID[gid]=1 | 263 self.ID[gid]=1 |
264 ns.setAttribute("id",gid,True) | 264 ns.setAttribute("id",gid,True) |
265 ns.setAttribute("inkscape:groupmode","layer",True) | |
265 self.last_line.node.repr.appendChild(ns) | 266 self.last_line.node.repr.appendChild(ns) |
266 print 'Add key ', x | 267 print 'Add key ', x |
267 self.last_line.add_keyframe(x,ns) | 268 self.last_line.add_keyframe(x,ns) |
268 self.update() | 269 self.update() |
269 self.last_line.update() | 270 self.last_line.update() |