Apps Can't set background texture

AnGeL LuiS R

1RPM
Original poster
Jul 19, 2017
6
3
100
I'm trying to add texture to a label:

separator = ac.addLabel(appWindow, '')
ac.setPosition(separator, 150, 40)
ac.setSize(separator, 50, 50)
ac.setBackgroundTexture(separator, 'apps/phyton/myapp/images/separator.png')

But setBackgroundTexture returns -1.