Python側でkivyのscreenを使用していて、尚且つそのscreen間で値渡しをしたいのですが、
下記のコードで行った場合「 TypeError: Cannot create a consistent method resolution
order (MRO) for bases Screen, A 」とエラーが出ます。
解決方法がわかる方いましたら教えてください。
python
1class A(Screen): 2 3 def Test(self): 4 5 self.manager.transition = FadeTransition(duration=.15) 6 self.parent.current = 'B' 7 command = "Oh my god" 8 print(command) 9 return command 10 11 12class B(Screen, A): 13 14 def on_enter(self): 15 print(command) 16
なんとなくpythonの書き方が違うような気がしています。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。