[Edu-sig] Gasp is ready for testing... (and, a look ahead)
Vern Ceder
vceder at canterburyschool.org
Mon Aug 14 17:08:16 CEST 2006
Uh, I must be missing something...
When I try to import gasp it hits what is in effect an endless loop at
line 52 because READY is explicitly compared to -1 but above it was set
to False, which is not necessarily the same as -1. (And it apparently
never gets changed before it hits the "while 1:" loop)
Am I right in thinking that it would be better (or at least more
Pythonic?) to do something like:
while 1:
if READY: break
else:
PYGAMEIMPORTERROR = 'Pygame is not installed on your computer'
raise PYGAMEIMPORTERROR #waits for pygame to be imported and
Even with that changed, it still fails to load pygame in the
_event_handler section and even if I import pygame manually beforehand,
I still get the "pygame is not installed" error and the import of gasp
fails.
Inside the loop at line 50 READY always == False.
My system is an Ubuntu 6.06 with Python 2.4 and pygame 1.7.1.
I hope this makes sense.
Cheers,
Vern Ceder
Jeffrey Elkner wrote:
> Gasp, the rewrite of the livewires API using pygame, is ready for
> testing. Please see: http://dc.ubuntu-us.org/projects/gasp for more
> info and to obtain the source. Thanks to David Muffley
> (sunami.2600 at gmail.com) for writing Gasp!
>
> jeff elkner
--
This time for sure!
-Bullwinkle J. Moose
-----------------------------
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137
More information about the Edu-sig
mailing list