Python Forum
question about my pygame code for space shooter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question about my pygame code for space shooter
#3
pygame.QUITis an integer and you are trying to call it like a function or method with parentheses after it.
if event.type == pygame.QUIT():
should be...
if event.type == pygame.QUIT:
Reply


Messages In This Thread
RE: game window immediately closesby itself and error in my code - by BashBedlam - Feb-07-2022, 01:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  question about my Pygame code Than999 2 1,744 Feb-06-2022, 10:03 PM
Last Post: Than999
  [PyGame] Problems with jump code in pygame Joningstone 4 5,455 Aug-23-2021, 08:23 PM
Last Post: deanhystad
  Distributing Python/Pygame code with CX_Freeze jfng75 2 2,865 Jan-11-2021, 10:23 PM
Last Post: snippsat
Video [PyGame] Space Invaders in PyGame Russ_CW 5 5,055 Nov-22-2020, 12:21 PM
Last Post: Russ_CW
  My Pygame Code always says "(Not responding") noodlespinbot 3 8,222 Feb-29-2020, 10:50 PM
Last Post: Windspar
  [pygame] Improvement with code SheeppOSU 1 2,458 Jul-24-2019, 11:09 AM
Last Post: metulburr
  [PyGame] Beginning PyGame question about "self" jakegold98 2 3,234 Dec-09-2017, 12:51 AM
Last Post: metulburr
  Python Pygame code help Trajme 1 4,072 Dec-07-2017, 04:55 PM
Last Post: nilamo
  Appropriately delay this PyGame code kleynah22 2 4,429 Nov-09-2017, 02:00 PM
Last Post: Windspar

Forum Jump:

User Panel Messages

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