[Tutor] Motion

Magnus Lycka magnus@thinkware.se
Fri Dec 20 17:25:02 2002


At 17:28 2002-12-20 -03-30, Adam Vardy wrote:
>Well, ah...
>this is what you'd do on a 1984 C64.
>
>POKE 1024+Y*40+X,MAN

:) It's many years since I played with the C64, and I certainly
don't remember the addresses. Don't even know where the manuals
are right now... But Python is not a machine. Python runs on many
different types of computers, from palm tops to main frames. They
don't have a lot in common regarding graphics hardware.

There is no native way to manipulate memory or hardware registers
directly from Python.

It was simpler in those days, but I can't say I want it back. I
remember how hard it was to read the letters on the screen when
you tried to squeeze 64 character into a line...

>Only thing is, here we go with novelletes that read to me like..."
>Isn't there a serious problem hidden in here: what happens when the 
>__init__ function returns and the frame variable goes out of scope?

Somewhere around here I lost you. I don't have the faintest idea
what this and the reast has to do with this email thread...

>Just relax; there's actually no need to keep a reference to the widget 
>instance.

It's a bit confusing how the underlying code in the GUI tool kits
hold "invisible" references to things. I usually keep explicit
references in my programs anyway, after all, you often want to do
things with your widgets from the program...


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se