Python Forum
Pygame in 90 Minutes - For Beginners syntax issues
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pygame in 90 Minutes - For Beginners syntax issues
#2
Your indentation is incorrect. In Python, indenting is syntax. The way your program is indented, the following is part of the "for event:" loop.
if _name_ == "_main_":
    Main()
Reply


Messages In This Thread
RE: Pygame in 90 Minutes - For Beginners syntax issues - by deanhystad - Jun-07-2023, 02:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Beginners to share pygame project? michael1789 4 3,152 Dec-04-2019, 07:17 AM
Last Post: michael1789
  [PyGame] Python pygame hangs up after 40 minutes chileflora 10 4,801 Jul-28-2019, 01:30 AM
Last Post: chileflora
  Beginners question Youmanity 4 3,822 Apr-08-2018, 07:02 PM
Last Post: Youmanity

Forum Jump:

User Panel Messages

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