Issue with fading in using setAnimations
#1
So I'm making a call to an API and once I have the information i create some ControlLabels and display them to the screen, I would like for these to fade in and fade out when going to the next lot of content. So I've used this;

python:
self.image[str(count)+str(i)].setAnimations([('VisibleChange', 'effect=fade start=0 end=100 time=300 condition=true', ), ('WindowClose', 'effect=slide start=0,0 end=1920,0 time=800 condition=true',)])

This works when hiding the content (also close works without issue) but displaying the content if just plops in a line at a time, no fade.
Now I'm not to sure if this is because when you addControl it's pre set to visible so there's technically no change in it's visibility so it wouldn't animate, so I've also tried setting it's visibility to False before I add the control and then after setting visibility to True, but still no luck.
​​​​​​​Just wondering if anyone has any ideas on what I'm doing wrong.
Reply

Logout Mark Read Team Forum Stats Members Help
Issue with fading in using setAnimations0