PGU - Phil's pyGame Utilities - 0.10
A collection of handy modules and scripts for PyGame.
0.10 - - added in a Password widget -- submitted by Dr. L. Humbert
- added in new documentation -- HTML only now. - added jhofmann's tiled preview widget to tileedit also included PIL support - removed gui/background.py -- merged contents into Theme. Made theme interface more cleanly seperated Widget.py jhofmann: added tiled preview widget to tileedit - zx64: in tilevid4,5 examples -- removed bold so that they work on more systems 2005-12-10 - 0.10-alpha-ludumdare-7-full-combat-version I've released this one just hours before LD #7 so that you (and I) can both benefit from some nice time saving features! All this stuff is alpha and subject to change before a real release! - fonts.py -- functions for loading bitmap based fonts (useful when TTF just doesn't cut it!) - algo.py -- functions for path finding (useful for guards, etc in games) - ani.py -- functions to help load animations into your vid objects (just plain useful) A new script: - levelfancy -- a script for taking a basic level and fancying it up -- try this in examples: ../scripts/levelfancy map.tga level.tga fancy.tga then view each of those tgas with leveledit to see what is going on... An old script: I removed tganew ages ago, but I'm putting it back. I like it. During this contest I will be available in #ludumdare and #pygame for questions related to using pgu. Have fun in the contest! If you find any bugs or anything I'll be glad to fix 'em and release a mid-contest version of pgu!
Pygame.org account Comments
Zhangyrmath 2011-06-12 01:20:44
good!I'll have a try on that
Happyfanatic 2012-04-08 19:51:17
I downloaded PGU to use the iso engine. The example code makes reference to a set of "tilevid tutorials" They are not included in the download; I couldn't find them on the homepage, or by google search. Anyone know if these exist anymore?
beginner 2012-04-18 01:07:21
title = gui.Label("Some Dialog Box")
label = gui.Label("The number now is ")
gui.Dialog.__init__(this, title, label)
how can i add a global variable inside the label ?? I cannot do something like :
class TestDialog(gui.Dialog): def __init__(this): global s title = gui.Label("Some Dialog Box") label = gui.Label("
The number now is", s) gui.Dialog.__init__(this, title, label)
where every time i click a button s increases
Magnus D 2012-10-28 21:22:38
When clicking the close button on the example windows, I do not succeed to close any of them. I am using Python3. Can someone help? I am reffering to the examples that ship with the package itself.
rob00 2013-01-11 03:19:38
>>>from pgu import gui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python32\lib\site-packages\pgu\gui\__init__.py", line 21, in <module>
from .container import Container
File "C:\Python32\lib\site-packges\pgu\gui\container.py", line 57
SyntaxError: invalid syntax
Floriusin 2014-12-26 13:20:46
Just go into pgu/gui/container.py and in update() edit "except StyleError,e:" to "except StyleError as e:" and then reinstall
fjkdasilva 2013-07-17 16:42:34
It is not clear how one gets access to values returned from PGU apps in a pygame program. Can anyone help?
Bir Bikram Dey 2014-01-01 21:39:51
I am not sure how to even install this to windows.
Is it me or pygame is not windows friendly :(
Beast 2014-05-07 19:52:43
copy paste cmd.exe into the pgu folder, write the command python setup.py install
canine828 2016-02-27 22:45:14
Pygame is Windows friendly. I have Windows on my school laptop (my parents won't let me put Linux on it), and it works pretty well. Just install Python, open the command prompt, and type C:\Python27\python.exe C:\path\to\the\pge\setup\python\file\setup.py install
Anony 2014-09-20 22:25:38
How to install and use this exactly?
canine828 2016-02-27 22:42:15
This is good, but there should be a clean simple Oxygen-ish theme built in. The last thing I want to do is rifle through my filesystem, find out that it's all generated by Qt, and use screenshots to make the gui.
Stam Kaly 2016-07-02 14:33:18
If you get error:
Traceback (most recent call last):
File "./setup.py", line 84, in <module>
File "./setup.py", line 33, in main
os.path.walk('data', visit, installdatafiles)
AttributeError: 'module' object has no attribute 'walk'
You can delete ".path" in "os.path.walk('data', visit, installdatafiles)"