LUI icon indicating copy to clipboard operation
LUI copied to clipboard

LUISpriteButton doesn't work

Open Minthos opened this issue 8 years ago • 2 comments

Trying to make one gives me the error message: File "/home/user/Downloads/LUI-master/Builtin/LUISpriteButton.py", line 15, in __init__ self._button_sprite.width = width NameError: global name 'width' is not defined I had hoped that class would let me create a clickable sprite, but I'll have to read more of the source before I figure out how to do that.

Minthos avatar Aug 28 '16 19:08 Minthos

Hi, first of all, sorry for the super late response.

can you try changing line 15 and 16 of Builtin/LUISpriteButton.py to:

    self.width = self._button_sprite.width
    self.height = self._button_sprite.height

tobspr avatar May 08 '17 09:05 tobspr

I'll see if I remember it when I have time. I don't even remember what I used it for.

Minthos avatar May 09 '17 21:05 Minthos