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 is the reason for your passion for sim racing?

  • Watching real motorsport

    Votes: 482 69.5%
  • Physics and mechanics

    Votes: 294 42.4%
  • Competition and adrenaline

    Votes: 318 45.8%
  • Practice for real racing

    Votes: 147 21.2%
  • Community and simracers

    Votes: 190 27.4%
Back
Top