簡體   English   中英

有沒有辦法在 kivy 中的 main(App) class 中使用 on_touch_move 值?

[英]Is there a way to use the on_touch_move value in the main(App) class in kivy?

有沒有辦法在 kivy 中的 main(App) class 中使用小部件的 on_touch_move 值? 我想在其他類中使用 touch.spos 的值。

您可以綁定到kivy.core.window.Window.on_touch_move或其他類似事件,如文檔中所述

或者,您可以讓其中一個小部件的on_touch_move方法調用應用程序 class 的 function,這實際上是相同的結果。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM