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?
#1
Hello.

Pygame has examples. On their website, stands this:

To get the files, run this code in the python interpreter:

>>> import pygame.examples.scaletest
>>> pygame.examples.scaletest.__file__
'/usr/lib/python2.6/site-packages/pygame/examples/scaletest.py'
I wanted to have the files for examples.aliens.
I've replaced the code above, by:

import pygame.examples.aliens
pygame.examples.aliens.__file__
'/usr/lib/python2.6/site-packages/pygame/examples/aliens.py'
Every time, I run it, nothing happens. It just says: Welcome to the pygame community: (Link to pygame website).
Nothing else happens.

So how can I find out, where those files are saved? Thanks for your help.

Piethon
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame has missing files. DamonTattersfield 1 3,436 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