termux-gui-python-bindings
termux-gui-python-bindings copied to clipboard
termuxgui.View.setbackgroundcolor doesn't seem to have any effect
I expect I'm using the wrong "configuration' for the parameter in my calls to setbackgroundcolor but every RGB syntax I can think of nor single digit ints have any effect.
Sample code is:
tv1= tg.TextView(a, "Custom color", layout)
# Set the background color of the first TextView to opaque red
tv1.setbackgroundcolor(0x00990000)
The format is 0xaabbggrr. Try 0xff for the alpha part, I can't remember which was opaque and which was transparent right now.
Ff for the alpha works (verified with settextcolor () ) but does not allow setting background color. I haven't looked at how termux:gui implements it. Have you seen success before and maybe termux-gui-python upgrade to 0.1.6 broke it?
I also asked this question again here