【问题标题】:Is there a way to use the on_touch_move value in the main(App) class in kivy?有没有办法在 kivy 的 main(App) 类中使用 on_touch_move 值?
【发布时间】:2021-12-18 22:21:53
【问题描述】:

有没有办法在 kivy 的 main(App) 类中使用小部件的 on_touch_move 值?我想在其他类中使用 touch.spos 的值。

【问题讨论】:

    标签: python python-3.x kivy kivy-language


    【解决方案1】:

    您可以绑定到kivy.core.window.Window.on_touch_move 或其他类似事件,如the documentation 中所述。

    或者,您可以让其中一个小部件的 on_touch_move 方法调用应用程序类的函数,这实际上是相同的结果。

    【讨论】:

      猜你喜欢
      • 2019-05-09
      • 2020-09-15
      • 2021-11-25
      • 2017-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多