What is your goal here?
In your button call
In your button call
def run(self, controller): for obj, info in self.objects.items(): obj.run(controller.screen, *info['finish_funcs'])You are only sending the screen and info back, the buttons run does no callback to anything.
'finish_funcs': [],Like this will print out as your button is held down
'finish_funcs': [lambda:print('test')],
Recommended Tutorials: