Nov-18-2021, 09:28 AM
Hi, I have Kivy app that sometimes making some heavy stuff.
It makes the user to sometimes click/touch two/three times, but I wish to ignore this click.
Right now, the clicks "saves" and will be executed after the first click.
My goal is to ignore them. Is it possible?
example.kv
It makes the user to sometimes click/touch two/three times, but I wish to ignore this click.
Right now, the clicks "saves" and will be executed after the first click.
My goal is to ignore them. Is it possible?
example.kv
<Upload> name:"upload" BoxLayout: orientation: 'vertical' Label: id: nr_label size_hint: (1, 1) font_size:24 text: "0" Button: size_hint: (1, 1) text: "Increase" on_release: root.increase()
class Upload(Screen): nr = 0 def increase(self): self.nr += 1 sleep(1) # Do some heavy stuff self.ids.nr_label.text = str(self.nr)If I run this example the app lock the button in one second, and after that I don't want anything to happen, even if I have click multi times on the button.