pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Wiki

sandbox

      
Search:  
 
 
sections
RunningInCorrectDirectory
Usage:
Discusion:
Problem:
Way to go:
Other considerations:
Parting shots:
Try out that code box: where's my "<"?
Including an image
Wiki content parser output
if 5 &lt; 6:
    print ("error")

RunningInCorrectDirectory

Usage:

Discusion:

Problem:

Way to go:

Other considerations:

Parting shots:

Note that the python docs are unclear (or the info if burried somewhere) as the exact circumstances in wich sys.argv[0] nor __file__ will not convey the info we want to extract. Also, from that blurriness, it is unclear if one is better than the other.
For your information, the old recipe (using sys.argv[0]) was used in
magicor from a year an a half, no problems.
Sorry if this is too long, but I want to state clearly the problems so as new recipes can cover ar least the same that an older. As a matter of example, the old recipe (not writen by me) handled the two (three?) first problems, a later recipe, the one that I am replacing, forget to adress the item 1 in Problems. So, please, if you want to improve the recipe, like do test if the new code cover more, and make explicit comments about what more it covers. The only adition to the older recipe code is the termination when a reliable appdir can not be built, and it was motivated by some misleading bug reports in pyweek6.
Have a nice prog!!!

Try out that code box: where's my "<"?

Including an image

The circle with holes Pygame draw package uses a crude, aliasing, algorithm to draw single pixel width circles. Thicker circles are composed of multiple single pixel width circles. There is not much overlapping of circles so, regrettably, it leaves holes.

Until Pygame incorporates a package like SDL_gfx (in pgreloaded already) with a filled-ellipse draw function programs will just have work around it. One solution, provided by Ian Mallett on the pygame-users, "is to draw a circle on a surface, then use pygame.draw.polygon() to clean off the parts you don't need. You can use colorkey-transparency as well to get 'cut-out' arcs." For arcs Ben Friman observed "that by making tiny adjustments to the arc angles, and re-drawing the arc, most of the holes would get covered up."

Wiki content parser output

Email bug reports and patches to the pygame-users mailing list

To submit a bug report to the mailing list:

  • Join the mailing list.
  • Write an email describing the problem.  Please include how to reproduce the bug.  Including a minimal script so people can see how to reproduce the bug themselves will lead to quicker fixing.  Please include versions of python, pygame, and your OS.
  • Include BUG: at the start of the subject.

To submit a patch to the mailing list:

  • Join the mailing list.
  • Email the mailing list with a description of what the patch fixes, as well as the patch.
  • Include PATCH: at the start of the subject.
  • If you are frequently offering patches, we can discuess giving you developer write access to the SVN repository.

Joining the mailing list to submit your patch or bug report will allow more people to look at your problem.  If you do not want to join the mailing list please send your bug report or patch to renesd AT gmail DOT com.

spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)