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.
#2
can you make your code fully runnable?
Error:
Traceback (most recent call last): File "test2.py", line 117, in <module> app.run() File "test2.py", line 97, in run self.currentWindow = self.currentWindow(self) File "test2.py", line 50, in __init__ Button(rect=[W*0.5-100, H*0.5-150, 200, 300], color=[0, 0, 255], hoverColor=[0, 0, 200], File "test2.py", line 20, in __init__ self.textSurf, self.textRect = text_objects(kwargs.get("text", "Hello World"), NameError: name 'text_objects' i
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, 04:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  what's not working? black window codeweak 3 975 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,099 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