[Edu-sig] More on graphics with graphics.py (Zelle's)
Gregor Lingl
glingl at aon.at
Mon Feb 12 23:29:54 CET 2007
kirby urner schrieb:
>
> Some of you old timers may recall a project in May, 2004 to implement
> Wolfram's minimalist cellular automaton experiments using a Tk canvas
> and/or PIL.
>
> As I recall, John showed us how to speed it up a whole lot by passing
> some 'False' parameter in the GraphWin call.
>
> However, now that I'm testing the code, in preparation for this post, lo
> these many years later (on a faster computer in a different version of
> Python (2.5)), and with a newly downloaded graphics.py, I'm seeing
> those rows of the Mayan Pyramid, associated with Wolfram's "Rule 30" [1],
> run across the screen like some raster beam on an ultra slow TV.
Hi Kirby and all,
I'm not sure if I'm adding something useful or intersting at all,
because I'm
currently following these threads only very superficially. I just wanted
to demonstrate, that the use of a simple canvas3.py - which uses Tkinter
directly - can also speed up your ultra slow TV considerably.
See attachments. (nks2.py has only the import statement and the last
line of the next() method added to nks.py. You can delete the last one
if you don't want to watch the pyramid growing)
Regards,
Gregor Lingl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: canvas3.py
Url: http://mail.python.org/pipermail/edu-sig/attachments/20070212/b890ea9a/attachment.pot
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nks2.py
Url: http://mail.python.org/pipermail/edu-sig/attachments/20070212/b890ea9a/attachment.asc
More information about the Edu-sig
mailing list