Python Forum
[PyGame] Screen is all black and nothing is updating, but I can't figure out why.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Screen is all black and nothing is updating, but I can't figure out why.
#4
What is your goal here?

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:
Reply


Messages In This Thread
RE: Screen is all black and nothing is updating, but I can't figure out why. - by metulburr - Oct-22-2020, 06:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  what's not working? black window codeweak 3 929 Dec-07-2023, 02:32 AM
Last Post: Benixon
  [PyGame] When I hit the space bar from the home screen, it sends me to the game over screen JesusisKing 1 1,082 Apr-30-2023, 10:11 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020