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

Jurgis Pralgauskis jurgis.pralgauskis at gmail.com
Fri Mar 13 21:13:32 CET 2015


Thanks,

would be even better, if there were possibility to swich orientation with
mode(...)
https://docs.python.org/3/library/turtle.html#turtle.mode

don't know how to call this mode, maybe 'crt_style' or so?
now there are 'standard', 'logo', or custom 'world'

On Fri, Mar 13, 2015 at 5:48 PM, Andre Roberge <andre.roberge at gmail.com>
wrote:

>
>
> 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
>>
>>
>


-- 
Jurgis Pralgauskis
tel: 8-616 77613;
Don't worry, be happy and make things better ;)
http://galvosukykla.lt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20150313/1773bd4d/attachment-0001.html>


More information about the Edu-sig mailing list