My problem is, that I'm trying to update a widgets background color inside a function, and swap it back after some time. The problem is, that Kivy seems to update the widgets as soon as every function is done, and it can go back into it's own mystery loop. Is there a function to update the whole widget, or the app on command? I'm not using a .kv-file for my widgets.
Asked
Active
Viewed 151 times
0
-
You can give an id to that widget in the **kv** file or use **bind method**. See here: http://stackoverflow.com/questions/30202801/how-to-access-id-widget-of-different-class-from-a-kivy-file-kv/30220800#30220800 – kiok46 Jun 24 '15 at 16:47
-
Got it myself. I'll post my answer. – d0n.key Jun 24 '15 at 17:56
1 Answers
0
Got it myself. At the point, where the update should take place I splittet my function. To show you what I mean:
Before
function():
widget.text = "new text"
#update?!
widget.text = "old text again"
After
function():
widget.text = "new text"
Clock.schedule_once(functionend)
functionend():
widget.text = "old text again"
In case you don't understand my process, feel free to ask, and I'll explain.

d0n.key
- 1,318
- 2
- 18
- 39