0
I want to dynamically change an image on a kivy label. every time the variable increases a number the label should change the image in python
def mudaimagem(self):
erros = self.qtd_erros
if erros == 1:
#Deve ser escrito aqui
self.ids.box1.image = "erro1.png"
.Kv
StackLayout:
Label:
id: box1
size_hint: .4,1
font_size: '30sp'
multiline: True
color: 0,0,0,1
canvas.before:
Rectangle:
pos: self.pos
size: self.size