开发者

Smooth Transition Between Frames in WxPython

开发者 https://www.devze.com 2023-03-03 17:01 出处:网络
I wonder if it is possible to make transitions between frames smoother in WxPython. For now I use the classical \"self.Destroy\" and \"self.GetParent().Show()\" methods to implement this task. But tr

I wonder if it is possible to make transitions between frames smoother in WxPython.

For now I use the classical "self.Destroy" and "self.GetParent().Show()" methods to implement this task. But transitions are sharp. And it just doesnt loo开发者_开发问答k nice to my eyes.

Any other suggestions?

Thanks in advance.


I don't know why you're Destroying the frame. Just hide / show it. Or use a "fade in" / "fade out" effect to make it look cooler. When it fades out all the way, hide the frame and vice-versa. See http://www.blog.pythonlibrary.org/2008/04/14/doing-a-fade-in-with-wxpython/ for an example of the fading effect.

0

精彩评论

暂无评论...
验证码 换一张
取 消