Homework help requested (not what you think!)

J

Joseph Clark

John, have you taken a look at pyglet? It's an alternative to pygame andI found it pretty slick once I got the hang of it. There is a developmentversion that's compatible with python 3 and I've never had a bug with it. It wraps OpenGL itself so there are no additional dependencies.



// joseph w. clark , phd , visiting research associate
\\ university of nebraska at omaha - college of IS&T
 
S

Skip Montanaro

John> Another project I thought of was a Pig Latin translator. (But
do kids today
John> even know what Pig Latin is? Am I showing my age?)

Chris> Even if they don't, they'll grok it no problem. It's simple enough.

Google for "Python pig latin" to see a lot of "prior art".

And it might be useful as a step as part of a word-based password generator. :)
words = open("/usr/dict/words")
words = [word.strip() for word in words if len(word) == 5]
len(words) 2194
import random
random.shuffle(words)
words[0:4] ['live', 'skat', 'levy', 'cove']
[makePigLatin(word) for word in words[0:4]]
['ivelay', 'atskay', 'evylay', 'ovecay']

:)

Skip
 
D

Dennis Lee Bieber

Even if they don't, they'll grok it no problem. It's simple enough.
Or some of the other variant means of obscuring words...

"igpay atinlay" is relatively simple... But there is the "op" scheme:
"popigop lopatopinop" (If I remember the proper application) or "ab":
"pabig labatabin" style... (again, I'm dredging up 40 year old memories).
 
J

John Ladasky

John, have you taken a look at pyglet? It's an alternative to pygame andI found it pretty slick once I got the hang of it. There is a developmentversion that's compatible with python 3 and I've never had a bug with it. It wraps OpenGL itself so there are no additional dependencies.


// joseph w. clark , phd , visiting research associate
\\ university of nebraska at omaha - college of IS&T
Hi Joe,

Thanks for the PyGLet recommendation. I like OpenGL. Unfortunately, I can't seem to get PyGLet to work, even though the pyglet.org front page claimsthat "the major 1.2alpha1 release brings pyglet to Python 3."

I followed the links to this page:

https://code.google.com/p/pyglet/downloads/list?q=1.2alpha1

I installed pyglet on my Linux system's Python 3.3 using distutils, as I have done with many other packages. But I can't run test.py, nor can I even get as far as importing pyglet from my Python 3.3 interpreter command line.The obstacle is apparently Python 2.x-style print statements, which are found throughout tests.py and pyglet/__init__.py.

Does anyone know an efficient way around this problem? Thanks!
 
D

Devyn Collier Johnson

Hi Joe,

Thanks for the PyGLet recommendation. I like OpenGL. Unfortunately, I can't seem to get PyGLet to work, even though the pyglet.org front page claims that "the major 1.2alpha1 release brings pyglet to Python 3."

I followed the links to this page:

https://code.google.com/p/pyglet/downloads/list?q=1.2alpha1

I installed pyglet on my Linux system's Python 3.3 using distutils, as I have done with many other packages. But I can't run test.py, nor can I even get as far as importing pyglet from my Python 3.3 interpreter command line. The obstacle is apparently Python 2.x-style print statements, which are found throughout tests.py and pyglet/__init__.py.

Does anyone know an efficient way around this problem? Thanks!
I cannot get Pyglet to work. I successfully installed the module and it
imports successfully, but a previously suggested command does not work.
I use Python3.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'media'

Mahalo,

DCJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top