[Edu-sig] turtle coordinates: Y increase downards - as in most graphics API?

Andre Roberge andre.roberge at gmail.com
Fri Mar 13 16:48:18 CET 2015


On Fri, Mar 13, 2015 at 8:52 AM, Jurgis Pralgauskis <
jurgis.pralgauskis at gmail.com> wrote:

> Hi,
>
> usually in computer graphics Y is counted to increase downwards.
> I casn do it with:     setworldcoordinates(0, 400, 600, 0)
>
> but then, "right(..)" turns to the left :/
>
>
> I could swap:
> right, left = left, right
>
> but on errror I get a bit misleading message
>
> >>> right()
> Traceback (most recent call last):
>   File "<pyshell#10>", line 1, in <module>
>     right()
> TypeError: left() takes exactly 1 argument (0 given)
>
> I thought to make this hack for kids, so better clearer error msgs...
>

> Any Ideas?
>

http://bugs.python.org/issue23660  (includes a proposed "permanent" fix).

André



> Thanks :)
> --
> Jurgis Pralgauskis
> tel: 8-616 77613;
> Don't worry, be happy and make things better ;)
> http://galvosukykla.lt
>
> _______________________________________________
> Edu-sig mailing list
> Edu-sig at python.org
> https://mail.python.org/mailman/listinfo/edu-sig
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20150313/9970e804/attachment.html>


More information about the Edu-sig mailing list