从输入计算多个结果并替换为标签 KIVY

Calculate multiple result from inputs and replace in label KIVY

问题已解决。关闭主题

来自基维 documentation:

text

Text of the label.

Creation of a simple hello world:

widget = Label(text='Hello world')

If you want to create the widget with an unicode string, use:

widget = Label(text=u'My unicode string')

text is a StringProperty and defaults to ‘’.

如果要更改特定标签的文本,只需使用其 id 检索,然后设置所需的文本:

self.ids.id_of_label_you_want_to_change.text = "Text you want to set"