Hi, i’m sortof new to panda. I’ve used it before but now im back to carry on using it. Anyway, i have a problem with Direct Button. I’ve used egg-texture-cards to make a button and i put it into my button:
what’s exactly your problem with the code snippet you posted, charlando? as you mentioned, it’s incomplete - so i’m not quite sure, what you want to achieve. do you miss self.setKey? do you get a traceback or is the behaviour not as expected?
i used the roaming ralph tutorial as a basis for my own stuff and had no problems so far regarding that code.
maybe if you explain your problem in more detail, someone could help.
ps: unfortunatly i can’t help with your DirectButton problem as I haven’t yet used the GUI classes.
sorry, trust me to miss out the main part
The problem is i get an error saying
“AttributeError: World instance has no attribute ‘setKey’”
I have no idea why it didnt work, i got this code from the Roaming Ralph tutorial.