Nov-18-2021, 04:34 PM
(Nov-18-2021, 02:02 PM)Barrowman Wrote: changeQuote: def increase(self):to
self.nr += 1
sleep(1) # Do some heavy stuff
self.ids.nr_label.text = str(self.nr)
if self.nr == 0: self.nr = 1 self.ids.nr_label.text = str(self.nr) else: return()You seem to be thinking that the sleep will allow something else to be going on but it won't.
The row:
sleep(1) # Do some heavy stuffis for simulate some slow processes, in my case it's a bluetooth communication that some time takes 1-2 second