Python Forum
[PyGame] Apparently module has no attribute display?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Apparently module has no attribute display?
#1
Hey, it's me again! I have no experience with PyGame at all!
Anyway, I'm importing this code:
import pygame

screen = pygame.display.set_mode((640, 400))

running = 1

while running:
	event = pygame.event.poll()
	if event.type == pygame.quit:
		running = 0
and it returns
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\[path]\pygametesteroo.py", line 3, in <module> screen = pygame.display.set_mode((640, 400)) AttributeError: 'module' object has no attribute 'display'
Reply


Messages In This Thread
Apparently module has no attribute display? - by Klar - Dec-17-2017, 12:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Apparently module has no attribute display? Angelo26 1 1,991 Mar-11-2020, 07:14 PM
Last Post: nilamo
  [split] Apparently module has no attribute display? Kolterdyx 1 2,823 Sep-09-2018, 05:14 AM
Last Post: buran

Forum Jump:

User Panel Messages

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