Apps Can't set background texture

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.
 

Latest News

What would be the ideal raceday for you to join our Club Races?

  • Monday

    Votes: 11 16.7%
  • Tuesday

    Votes: 9 13.6%
  • Wednesday

    Votes: 9 13.6%
  • Thursday

    Votes: 10 15.2%
  • Friday

    Votes: 27 40.9%
  • Saturday

    Votes: 32 48.5%
  • Sunday

    Votes: 29 43.9%
Back
Top