When I try to make a class inheriting from DirectButton, even without methods, it gets created without image. It is not clickable, it is as if it didn’t instantiate properly.
Here is my code:
class ItemButton(DirectButton):
pass
t = ItemButton(
image=item.image,
pos=pos,
scale=scale,
command=self.item_click,
extraArgs=[item],
)
Results in
(The art you’re seeing is the background)
While using the direct button normally:
t = DirectButton(
image=item.image,
pos=pos,
scale=scale,
command=self.item_click,
extraArgs=[item],
)
The result is correct:
(The art is placeholder)
Is this a bug, or am I missing something?