Python Kivyにてアニメーションが実行されない状態が続いています。
Python
1class Sample(AnchorLayout): 2 def __init__(self,**kwargs): 3 super(Sample,self).__init__(**kwargs) 4 5 def animate(self): 6 animation = Animation(color=[0, 0, 1, .9], d=1, t='in_out_quint') 7 animation.start(self) 8
#kv <Sample@BoxLayout>: ScrollView: BoxLayout: Label: text: "Hello" color: .3, .3, .3, .9
アニメーションを定義し、アニメーションの時間、変化、動き方を指定し、startしているのに文字色が一向に変わりません。
コードの不備があるかと思います。
お分かりの方は情報提供をお願いいたします。
なお、animationのimportはしております。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/10 15:01