changeset 1297:0e27e3aa21ed

Add more arguments to pass the required data.
author wycc
date Sun, 16 Jan 2011 10:14:41 +0800
parents 7f0a16125eeb
children 2a5da457474d
files pyink/tween.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/tween.py	Sun Jan 16 10:10:37 2011 +0800
+++ b/pyink/tween.py	Sun Jan 16 10:14:41 2011 +0800
@@ -216,7 +216,7 @@
 	        obj.appendChild(newobj)
 	pass
 
-    def updateTweenObjectScale_Group(self,s,d,top):
+    def updateTweenObjectScale_Group(self, s, d, p, newobj, top):
 	# Parse the translate or matrix
 	# 
 	# D  = B inv(A)
@@ -266,7 +266,7 @@
 	top.setAttribute("transform","matrix(%g,%g,%g,%g,%g,%g)" % (m[0],m[2],m[1],m[3],m[4],m[5]))
 	pass
 
-    def updateTweenObjectScale_Use(self,s,d,top):
+    def updateTweenObjectScale_Use(self, s, d, p, newobj, top):
 	# Parse the translate or matrix
 	# 
 	# D  = B inv(A)
@@ -313,7 +313,7 @@
 	top.setAttribute("transform","matrix(%g,%g,%g,%g,%g,%g)" % (m[0],m[2],m[1],m[3],m[4],m[5]))
 	pass
 
-    def updateTweenObjectScale_Primitive(self,s,d,top):
+    def updateTweenObjectScale_Primitive(self, s, d, p, newobj, top):
 	try:
 	    if d.name() == "svg:use":
 		sw = 1
@@ -432,11 +432,11 @@
 	    pass
 	print s.name() 
 	if s.name() == 'svg:g':
-	    self.updateTweenObjectScale_Group(s,d,top)
+	    self.updateTweenObjectScale_Group(s,d,p,newobj,top)
 	elif s.name() == 'svg:use':
-	    self.updateTweenObjectScale_Use(s,d,top)
+	    self.updateTweenObjectScale_Use(s,d,p,newobj,top)
         else:
-	    self.updateTweenObjectScale_Primitive(s,d,top)
+	    self.updateTweenObjectScale_Primitive(s,d,p,newobj,top)
 	pass
     pass