Python Forum
builtins.ValueError: sequence size mismatch
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
builtins.ValueError: sequence size mismatch
#2
1. Let pygame choose best depth.
windowSurface = pygame.display.set_mode((500,400))
2. PixelArrays are like NumPy Arrays
pixArray[480, 380] = pygame.Color('Black')

3. pygame.display.update() belongs in main loop.
while True:
    for event in pygame.event.get():  
        if event.type == QUIT:
            pygame.quit()  
            sys.exit()

    pygame.display.update()
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
RE: builtins.ValueError: sequence size mismatch - by Windspar - Feb-05-2019, 03:00 AM

Forum Jump:

User Panel Messages

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