python - wxPython Animation - Tween Animation -


i wondering if possible have tween animation in wxpython. have tried looking @ documentation cannot seem spot reference it. example of after having button fly bottom of window top. there such way?

not exactly...

there no magic tween function builtin wx afaik, can use timers create update interval , animate yourself

import wx global btn def updater():     p = btn.getposition()     btn.setposition((p[0] ,p[1] - 2))     wx.calllater(50,updater) a= wx.app(redirect=false)  f = wx.frame(none,-1,"animation",size=(400,600)) p = wx.panel(f,-1) btn = wx.button(p,-1,"click me",pos=(175,520)) f.show() wx.calllater(50,updater) #could have used normal timer easy ... maybe easier a.mainloop() 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -