Hello again little helpers.
I have another question for which I could not found any answer so far.
maybe it is just not a problem at all but as a beginner I am at my limits. :)
Problem:
Have an UI with UI-Editor with buttons in it. Want to change background color of the tapped button.
Tried:
Python script within button action (button1->tapped). Now I just cannot figure out (and have not found any help in net or this forum - maybe I searched wrong) how to address that button1 attribute 'background_color'.
I know that when I build he whole view by script I could 'instanciate' the buttons and have a handler there but how to do it when using UI editor?
How to pick a certain button and change attributes?
Tried it with 'sender.background_color = 'green' or 'UI.button1.background_color = 'green'
all not working.
therefore I have two questions:
1. how to address an UI element from within scripts on views which were created with UIEditor?
- how to change the background color of a button by script?
as always when I ask beginner questions: Thanks everyone for trying to help and spent your time on my problems! :)