[Edu-sig] Writing presentation manager for OSCON, in Pygame
Kirby Urner
urnerk at qwest.net
Tue Jul 19 04:17:44 CEST 2005
> roadmap = _("""
> This speech talks about
> =======================
>
> * How **big** is the Brazilian Python Community (BPC) ?
> * How **fast** does it grow ?
> * First Conference **PyConBrasil** held April 2005
> * Who's **Who**
> * What are we doing with Python, Zope and Plone
>
> """)
Interesting work Rodrigo.
My setup code is not so friendly.[1] A Linux Journal issue I think it was,
a few months back, was about coding as art project, i.e. you're doing a
one-off but using code in some interesting, inspiring way. That's probably
the fate of my particular pgtest1.py -- it won't go anywhere far beyond
OSCON, and yet will make ripples, in its own way.
Kirby
[1] example, a scene I just finished, using a slightly more advanced copy of
the source than sent Zelle & Bauman.
"""
Urner, GPL
"""
...
def setscene14(s):
graphics = []
for i in range(1,12):
filename = "cubanim"+str(i).zfill(2)
graphics.append(fpath + filename + ".png" )
mobj0 = Content()
mobj0.content_type = 'autoflip'
mobj0.topleft = (400,100)
mobj0.imagelist = graphics
mobj0.milliseconds = 100
mobj1 = Content()
mobj1.content_type = 'stilltext'
mobj1.filename = fpath + "ccp.py"
mobj1.fontsize = 20
mobj1.topleft = (60,200)
mobj2 = Content()
mobj2.content_type = 'coderunner'
mobj2.topleft = (450,350)
def ccp():
shell, accum = 1,1
yield (shell, accum)
f = 1
while True:
shell = 10*f*f + 2
f += 1
accum += shell
yield shell,accum
mobj2.generator = ccp
mobj2.milliseconds = 1000
mobj3 = Content()
mobj3.content_type = 'autoflip'
mobj3.topleft = (350,400)
mobj3.imagelist = [fpath + 'smbellbigkite.jpg', fpath + 'vesphere.jpg']
mobj3.milliseconds = 1000
mobj4 = Content()
mobj4.content_type = 'stillimage'
mobj4.topleft = (750,200)
mobj4.filename = fpath + 'tetrapack.gif'
scene = Scene( s, 'white', 'Closest Packing of Spheres',
13, contents = [mobj2, mobj0, mobj1, mobj3, mobj4])
return scene
More information about the Edu-sig
mailing list