well i was able to solve it on my own
thanks for the help guys
turns out after passing the connect statement through lambda, a different issue arrised
instead of
self.animation.endValue(widthExtend)
i had to write
self.animation.setEndValue(widthExtend)