从物理切换中断以增加猕猴桃屏幕标签中的值

时间:2019-01-31 05:25:55

标签: python kivy kivy-language

我是kivy和python的新手。我按下按钮时(物理)需要运行一个中断程序来更新kv文件中的label(旧标签数字+1)的值。我发布了许多与此有关的问题,但这些问题使其他人感到困惑,因此我试图使这一问题变得简单明了。

.Py

class Mode1(Screen):
     x1=NumericProperty()
      #The code needed for callback/interrupt and update x1 in kv file

.Kv

<Mode1>:
    Label:
        text:root.x1

0 个答案:

没有答案
相关问题