Linux in the TDSB

Anton Markov anton-F0u+EriZ6ihBDgjK7y7TUQ at public.gmane.org
Thu Oct 7 21:26:41 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Taavi Burns wrote:
|>1) Basic conditional statements, loops, function calls.
|>This is done in Turing through "fun" activities like animating circles :(
|>
|>I would recommend a simple test editor with a "run" and "step through"
|>button. The language used would be python, but stripped down so that
|>when the user types 'print "Hello World"' (or whatever it is in Python;
|>I don't know the language :( ), it outputs that text.
|
|
| That's exactly the syntax.  :)  You don't have to strip anything down,
either.
| From your shell, type "python".  You're then left at a Python prompt,
from which
| you can immediately type 'print "Hello World"', and it will.
|
Even better.

|>Adding some wrapper functions to standard GTK calls for drawing circles,
|>lines, squares, etc. and outputting to a GTK windows would be enought to
|>surpass the basic Turing functionality.
|
|
| The wxWindows cross-platform widget set has the wxPython bindings.  That
| will give you native look-and-feel wherever it runs.
Widgets probably don't matter at this stage. A single window will do, so
long as one can draw stuff onto it. For example, Turing makes it very
easy to draw basic geometric figures into a Window; something I haven't
seen in any other language yet (of those I've used). For example, to
draw a circle:

setscreen("graphics:640;480)
drawfilloval(100,100,40,40,red)

would draw a circle at (100,100) with a radius of 40 and red in color. I
am sure it would be trivial to write a library implementing something
similar in Python. It makes learning programming fun for the more
"artistic" people.


- --
Anton Markov <("anton" + "@" + "truxtar" + "." + "com")>

GnuPG Key fingerprint =
5546 A6E2 1FFB 9BB8 15C3  CE34 46B7 8D93 3AD1 44B4

*** LINUX - MAY THE SOURCE BE WITH YOU! ***
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBZbSPRreNkzrRRLQRAlQEAJ4ubsgyMdCMmRYLXUR2ezmr/4sHagCggBp7
cZpLubUxrKMSg4RoJ9mgvDw=
=pXr9
-----END PGP SIGNATURE-----
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list