Python Forum
How to find the pygame example files?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find the pygame example files?
#2
Its meant to be ran from the command prompt/terminal, not imported into the interpreter.

metulburr@ubuntu:~$ python -m pygame.examples.aliens
metulburr@ubuntu:~$ 
in which it will run the example program

The way you have it is showing where the file are located:
/usr/lib/python2.6/site-packages/pygame/examples/aliens.py
navigate there and you can see the files

P.S. Python2.x has an end of life support coming up in Jan 1st 2020.; I would suggest to start using python3.x
Recommended Tutorials:
Reply


Messages In This Thread
How to find the pygame example files? - by Piethon - Sep-03-2019, 09:00 AM
RE: How to find the pygame example files? - by metulburr - Sep-03-2019, 11:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame has missing files. DamonTattersfield 1 3,459 Dec-27-2019, 11:54 AM
Last Post: Windspar

Forum Jump:

User Panel Messages

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