Re: Turtle module

2021-05-26 Thread Greg Ewing
On 27/05/21 4:17 am, Chris Angelico wrote: Worst case, it is technically available as the ._fullcircle member, but I would advise against using that if you can help it! If you're worried about that, you could create your own turle subclass that tracks the state how you want. -- Greg -- https:/

Re: Turtle module

2021-05-26 Thread boB Stepp
On Wed, May 26, 2021 at 10:59 AM Michael F. Stemper wrote: > In order to turn the turtle, I need to select a way to represent > angles. I could use either degrees or radians (or, I suppose, > grads). However, for my functions to work, I need to set the > turtle to that mode. This

Re: Turtle module

2021-05-26 Thread Chris Angelico
you, here's what I'd recommend: Propose that the fullcircle state be added to what pen() returns and can update, and also possibly propose a context manager, so you can do something like this: def f(): with turt.local(): turt.pendown() ... # once we get here, the turtle's pen state will have been restored I'm not the person to ask about these, as I don't use the turtle module, but those would seem fairly plausible enhancements. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Turtle module

2021-05-26 Thread Michael F. Stemper
my_turtle only Oooh, I like this. It's proof against other types of bullets that might come along. All of the above ideas have *not* been tested. My first test found me with two arrows (turtle icons?) upon return. I immediately realized what caused it, and put t.hideturtle() a

Re: Turtle module

2021-05-26 Thread Michael F. Stemper
On 26/05/2021 11.17, Chris Angelico wrote: On Thu, May 27, 2021 at 1:59 AM Michael F. Stemper wrote: What I would like to do is capture the angle-representation mode on entry and restore it on return. However, looking through the methods of turtle.Turtle(), I can't find any means of captu

Re: Turtle module

2021-05-26 Thread Chris Angelico
On Thu, May 27, 2021 at 1:59 AM Michael F. Stemper wrote: > In order to turn the turtle, I need to select a way to represent > angles. I could use either degrees or radians (or, I suppose, > grads). However, for my functions to work, I need to set the > turtle to that mode. This

Turtle module

2021-05-26 Thread Michael F. Stemper
I recently discovered the turtle module and have been playing around with it for the last few days. I've started writing some functions for turtles, and would like to make them a bit more robustly than what I currently have. In particular, I'd like the state of the turtle to be more o

Turtle Import

2020-09-01 Thread Barnabas Harris
My import function mysteriously stop working. Is there a way to restore it as I need the second screen to see the turtle move when I command it from python 3.8.5 shell but when I hit enter nothing happens. -- https://mail.python.org/mailman/listinfo/python-list

Re: Having trouble importing the python turtle on idle

2020-05-17 Thread Terry Reedy
. First, when running IDLE, select on the menu IDLE and About IDLE. What is the tk version? It should be 8.6.8. Second, start Terminal and enter ... $ python3.8 -m turtle This should start a turtle demo that draws and erases two patterns. which is importing the python turtle on to my screen

Re: Having trouble importing the python turtle on idle

2020-05-16 Thread Souvik Dutta
my 11 inch MacBook > > Air (Mac OS Sierra)version 10.12.6 > > I have followed all the instructions all the way through for installation > > I even downloaded activetcl and had no issues with instructions until > > chapter 4 page 45 > > which is importing the python

Re: Having trouble importing the python turtle on idle

2020-05-16 Thread Bischoop
0.12.6 >> I have followed all the instructions all the way through for installation >> I even downloaded activetcl and had no issues with instructions until >> chapter 4 page 45 >> which is importing the python turtle on to my screen. >> However I have troubleshoote

Re: Having trouble importing the python turtle on idle

2020-05-16 Thread KINGHAMED io
way through for installation > I even downloaded activetcl and had no issues with instructions until > chapter 4 page 45 > which is importing the python turtle on to my screen. > However I have troubleshooted every possible way to get this right even > uninstalling and reinstalling Python s

Re: Something faster than turtle

2019-09-17 Thread Tintin
Thank you very much Stefan, I'll have a look at it. Le 17/09/2019 à 01:37, Stefan Ram a écrit : tracer( 0 )/update() -- https://mail.python.org/mailman/listinfo/python-list

Something faster than turtle

2019-09-16 Thread Tintin
Hi, I'm novice in Python. I'm trying to draw with turtle but it's really slow (even with speed("fastest")). Comparing to Scratch, it's really slow. 1/ Are there solutions to get things faster ? 2/ Are there any other tools such as turtle but (reall

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread MRAB
On 2019-03-25 22:38, Grant Edwards wrote: On 2019-03-25, Larry Martell wrote: On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez wrote: wait no nevermind im such an idiot Every programmer I have ever known has said that. And never saying that is a 100% reliable indicator that you really are

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread Grant Edwards
On 2019-03-25, Larry Martell wrote: > On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez > wrote: >> wait no nevermind im such an idiot > > Every programmer I have ever known has said that. And never saying that is a 100% reliable indicator that you really are one... -- Grant Edwards

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread Larry Martell
On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez wrote: > wait no nevermind im such an idiot Every programmer I have ever known has said that. -- https://mail.python.org/mailman/listinfo/python-list

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread CrazyVideoGamez
On Wednesday, March 20, 2019, at 7:34:53 PM UTC-4, CrazyVideoGamez wrote: > So, I typed in code: > from turtle import * > forward(100) > right(120) > clear() > It didn't work! It kept on saying that there was an indent and the first line > was wrong. Help! wait no

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread CrazyVideoGamez
On Wednesday, March 20, 2019 at 8:29:42 PM UTC-4, MRAB wrote: > On 2019-03-21 00:12, DL Neil wrote: > > Jason, > > > > On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote: > >> So, I typed in code: > >> from turtle import * > >> forward(100) >

Re: Might be doing this wrong? (Turtle graphics)

2019-03-22 Thread Peter J. Holzer
On 2019-03-21 00:44:46 -0400, Terry Reedy wrote: > On 3/20/2019 7:34 PM, jasonanyil...@gmail.com wrote: > > So, I typed in code: > > from turtle import * > > forward(100) > > right(120) > > clear() > > It didn't work! It kept on saying that there was

Re: Might be doing this wrong? (Turtle graphics)

2019-03-21 Thread Informatico de Neurodesarrollo
If you run on linux system? May be you are already installed for python 3, but not for python (python 2.7) or vice_versa . Checks this. (The code work fine, openSuSE Leap 15) El 20/03/19 a las 19:34, jasonanyil...@gmail.com escribió: So, I typed in code: from turtle import * forward(100

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread Terry Reedy
On 3/20/2019 7:34 PM, jasonanyil...@gmail.com wrote: So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! that suggests that what you typed above is not what you ran. Di

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread MRAB
On 2019-03-21 00:12, DL Neil wrote: Jason, On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote: So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! It would be most he

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread DL Neil
Jason, On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote: So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! It would be most helpful if you gave us the exact erro

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread CrazyVideoGamez
On Wednesday, March 20, 2019, at 7:34:53 PM UTC-4, CrazyVideoGamez wrote: > So, I typed in code: > from turtle import * > forward(100) > right(120) > clear() > It didn't work! It kept on saying that there was an indent and the first line > was wrong. Help! I'm a

Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread jasonanyilian
So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! -- https://mail.python.org/mailman/listinfo/python-list

i have add mouse motion feature to turtle

2018-07-31 Thread Coding Kids
i have add mouse motion event to turtle i think it's an small but excellent imporovement and made turtle could create more interesting project for kids any possiblity add this feature to offical version?is so what a exciting things! -- https://mail.python.org/mailman/listinfo/python-list

Re: Generating SVG from turtle graphics

2018-01-15 Thread Abdur-Rahmaan Janhangeer
https://image.online-convert.com/convert-to-svg On 15 Jan 2018 02:55, "Niles Rogoff" wrote: > On Sun, 14 Jan 2018 16:32:53 +0400, Abdur-Rahmaan Janhangeer wrote: > > > maybe save to .png then use another tool to svg > > PNG is a bitmap format[1], so you can't covert it to an SVG (a vector > form

Re: Generating SVG from turtle graphics

2018-01-15 Thread Anssi Saari
Peter Otten <__pete...@web.de> writes: > Then convert to SVG with an external tool. It looks like ghostscript can do > that: > > $ gs -dBATCH -dNOPAUSE -sDEVICE=svg -sOutputFile=tmp_turtle.svg tmp_turtle.ps And if not (I at least don't have svg output on three ghostscripts I tried), pstoedit can

Re: Generating SVG from turtle graphics

2018-01-14 Thread Niles Rogoff
On Sun, 14 Jan 2018 16:32:53 +0400, Abdur-Rahmaan Janhangeer wrote: > maybe save to .png then use another tool to svg PNG is a bitmap format[1], so you can't covert it to an SVG (a vector format) without guessing things like the start/end points of the lines, their slopes, etc... not to mention

Re: Generating SVG from turtle graphics

2018-01-14 Thread Serhiy Storchaka
11.01.18 13:03, Steven D'Aprano пише: I'd like to draw something with turtle, then generate a SVG file from it. Is this possible? If not, is there something I can do which lets me plot lines, shapes and curves and output to SVG? You can translate the following Tcl/Tk recipe to Pyth

Re: Generating SVG from turtle graphics

2018-01-14 Thread Abdur-Rahmaan Janhangeer
maybe save to .png then use another tool to svg On 11 Jan 2018 15:06, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > I'd like to draw something with turtle, then generate a SVG file from it. > > Is this possible? > > If not, is th

Re: Generating SVG from turtle graphics

2018-01-14 Thread Peter Otten
Steven D'Aprano wrote: > I'd like to draw something with turtle, then generate a SVG file from it. > > Is this possible? If this is a one-off job consider creating Postscript from the underlying Canvas: >>> import turtle >>> for i in range(12): ... tu

Re: Generating SVG from turtle graphics

2018-01-12 Thread Thomas Jollans
On 2018-01-11 12:03, Steven D'Aprano wrote: > I'd like to draw something with turtle, then generate a SVG file from it. > > Is this possible? > > If not, is there something I can do which lets me plot lines, shapes and > curves and output to SVG? > > Ideally,

Re: Generating SVG from turtle graphics

2018-01-11 Thread Lele Gaifax
Steven D'Aprano writes: > Ideally, I'd like to draw a figure pixel by pixel, and then have the SVG > library fit a bezier curve to it. Uhm, dunno if it is a good approach, it really depends on the kind of "figures" you are going to draw. Anyway, in the past I used http://pyx.sourceforge.net/ t

Generating SVG from turtle graphics

2018-01-11 Thread Steven D'Aprano
I'd like to draw something with turtle, then generate a SVG file from it. Is this possible? If not, is there something I can do which lets me plot lines, shapes and curves and output to SVG? Ideally, I'd like to draw a figure pixel by pixel, and then have the SVG library fit a bezie

Re: Turtle graphics under the console under Windows

2017-08-25 Thread Michael Torrie
On 08/25/2017 06:10 AM, Stefan Ram wrote: > Do I miss any means to make the turtle graphics window > behave more normally and at the same time be able to draw > graphics interactivley from the console, watching the result > of one move command and then interacticely typing in m

Re: Turtle window not closing

2017-04-23 Thread Peter Otten
Harshika Varadhan via Python-list wrote: > Thank you for your response. I apologize for that, this is my first time > posting so I wasn't sure how to copy my code! I figured out that using the > clear() method works for clearing the turtle window after drawing the game > bo

Re: Turtle window not closing

2017-04-22 Thread Terry Reedy
On 4/22/2017 3:52 AM, Peter Otten wrote: Harshika Varadhan via Python-list wrote: Are you running your script from within IDLE? Try starting it from the command line instead. Like turtle IDLE itself is a program written in tkinter, and the separation between editer and user code is not

Re: Turtle window not closing

2017-04-22 Thread Harshika Varadhan via Python-list
Thank you for your response. I apologize for that, this is my first time posting so I wasn't sure how to copy my code!  I figured out that using the clear() method works for clearing the turtle window after drawing the game board, but now I am trying to figure out how to make the program w

Re: Turtle window not closing

2017-04-22 Thread Peter Otten
Harshika Varadhan via Python-list wrote: > I am creating a game where the user inputs a coordinate to place their > piece on a chess board. My code then draws the chess board with a turtle > and fills in the squares in with green where the user can place their next > piece. After the

Turtle window not closing

2017-04-21 Thread Harshika Varadhan via Python-list
Hi everyone, I am creating a game where the user inputs a coordinate to place their piece on a chess board. My code then draws the chess board with a turtle and fills in the squares in with green where the user can place their next piece. After the user inputs their first coordinate, the turtle

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Thanks! This helped me! -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Peter Otten
Kasper wrote: > How can i make the score stop blinking The following part > #draws the score on the screen > mypen.undo() > mypen.penup() > mypen.hideturtle() > mypen.setposition(-290, 310) > scorestring1 = (name1 + ": %s" + " points ") %score1 > scorestring2 = (nam

I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
e pyth.GIF) ____ #turtle game (take down the yellow astroides 1v1) import turtle import math import random import os #asks for players name print("player 1 uses W,A,S,D and player 2 are using arrow Up, Down, Left, Right.") print(&q

Re: Python turtle: How to change icons

2016-11-26 Thread Terry Reedy
On 11/25/2016 10:33 PM, qrious wrote: Hello All, I would like to change two graphical icons related to turtle graphics using Python: a) One that shows up at the top left corner of the canvas window as in below. I believe this is coming from tk itself. https://s22.postimg.org/tkjaxmh41

Python turtle: How to change icons

2016-11-25 Thread qrious
Hello All, I would like to change two graphical icons related to turtle graphics using Python: a) One that shows up at the top left corner of the canvas window as in below. I believe this is coming from tk itself. https://s22.postimg.org/tkjaxmh41/image.png b) The icon on the desktop as

Re: Text input with keyboard, via input methods (was: turtle ??)

2016-03-09 Thread Rustom Mody
On Thursday, March 10, 2016 at 12:59:10 PM UTC+5:30, Ben Finney wrote: > Marko Rauhamaa writes: > > > BTW, typing any useful Unicode character is a major unsolved problem. > > You typed a good number of Unicode characters in that sentence alone. > ASCII is a simple subset of Unicode. > > I supp

Re: turtle ??

2016-03-09 Thread Chris Angelico
On Thu, Mar 10, 2016 at 5:14 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> A Turkish keyboard should have dotless and dotted, uppercase and >> lowercase, all easily typed. > > BTW, typing any useful Unicode character is a major unsolved problem. I > have created this text file that contains a

Text input with keyboard, via input methods (was: turtle ??)

2016-03-09 Thread Ben Finney
Marko Rauhamaa writes: > BTW, typing any useful Unicode character is a major unsolved problem. You typed a good number of Unicode characters in that sentence alone. ASCII is a simple subset of Unicode. I suppose you meant to refer to typing some character not mapped to a single keystroke on a U

Re: turtle ??

2016-03-09 Thread Jussi Piitulainen
lot of unicode > characters with their code points. Every once in a while I have to > open the file and copy and paste a character to, say, a Usenet > posting. Cumbersome but necessary. C-u M-x python3 -c 'print("\N{TURTLE}", end = "")' RET :) 🐢 Though I only

Re: turtle ??

2016-03-09 Thread Marko Rauhamaa
Chris Angelico : > A Turkish keyboard should have dotless and dotted, uppercase and > lowercase, all easily typed. BTW, typing any useful Unicode character is a major unsolved problem. I have created this text file that contains a lot of unicode characters with their code points. Every once in a

Re: turtle ??

2016-03-09 Thread Chris Angelico
On Thu, Mar 10, 2016 at 1:45 PM, Steven D'Aprano wrote: > On Thu, 10 Mar 2016 05:14 am, MRAB wrote: > >> FYI, the uppercase of "ı" is "I" and the lowercase of "İ" is "i". > > Very true. Does that tell us anything about the placement and ease of > getting I on a Turkish keyboard? > > I'm just givin

Re: turtle ??

2016-03-09 Thread Steven D'Aprano
On Thu, 10 Mar 2016 05:14 am, MRAB wrote: > FYI, the uppercase of "ı" is "I" and the lowercase of "İ" is "i". Very true. Does that tell us anything about the placement and ease of getting I on a Turkish keyboard? I'm just giving the OP the benefit of the doubt. Maybe they have a good reason for

Re: turtle ??

2016-03-09 Thread MRAB
On 2016-03-09 11:55, Steven D'Aprano wrote: On Wed, 9 Mar 2016 08:06 pm, Peter Otten wrote: Ömer sarı wrote: l would like to ask a question as l m a little bit confused . In computing details matter, and in communication odd personal habits distract from the actual message. Please reconside

Re: turtle ??

2016-03-09 Thread Terry Reedy
On 3/9/2016 2:39 AM, Ömer sarı wrote: import turtle # Allows us to use turtles wn = turtle.Screen() # Creates a playground for turtles alex = turtle.Turtle()# Create a turtle, assign to alex alex.forward(50) # Tell alex to move forward by 50 units alex.left

Re: turtle ??

2016-03-09 Thread Joel Goldstick
lack. > > But apart from that, I agree: in the long term, if Ömer is going to be > programming, he'll need to do something about that keyboard. > > Firstly, it says python3 in the title, so use python3 > I ran the code with python 2.7. However, python3 is most like

Re: turtle ??

2016-03-09 Thread Steven D'Aprano
On Wed, 9 Mar 2016 08:06 pm, Peter Otten wrote: > Ömer sarı wrote: > >> l would like to ask a question as l m a little bit confused . > > In computing details matter, and in communication odd personal habits > distract from the actual message. Please reconsider your use of an "l" as > a replacem

Re: turtle ??

2016-03-09 Thread Peter Otten
uot;. Did Python print a a "traceback"? This gives detailed information about the error and where in the code it occurs. You should always provide it (cut and paste, don't paraphrase). > import turtle # Allows us to use turtles > wn = turtle.Screen() # Create

turtle ??

2016-03-08 Thread Ömer sarı
below. "" import turtle # Allows us to use turtles wn = turtle.Screen() # Creates a playground for turtles alex = turtle.Turtle()# Create a turtle, assign to alex alex.forward(50) # Tell alex to move forward by 50 units alex.left(90) # Tell alex to tur

bgpic doesn't show background image for turtle

2016-01-19 Thread Jean Richelle
Hello, I'm trying to have a background image for the turtle graphics. bgpic("filename.gif") works correctly in terminal mode but I'm getting an error when it is in a python program : File "VisuProg3.0.564.py", line 2206, in afficheLabyrinthe bgpic("L

Re: Turtle

2016-01-15 Thread Alister
On 14/01/16 22:22, Stallone Carl wrote: Dear sir/madam I am currently using python 3.5.0 and I have been trying to write a program using turtle but is not seem to be working. I have followed all tutarial on the web and when i compare it with my code my am duing everything the same way but it

Re: Turtle

2016-01-15 Thread Dave Farrance
Stallone Carl wrote: >I am currently using python 3.5.0 and I have been trying to write a program >using turtle but is not seem to be working. I have followed all tutarial on >the web and when i compare it with my code my am duing everything the same >way but it still don't seem

Re: Turtle

2016-01-15 Thread Bernardo Sulzbach
Maybe the tutorial is using Python 2. Always provide a SSCCE and, when it makes sense, the error message. -- https://mail.python.org/mailman/listinfo/python-list

Turtle

2016-01-15 Thread Stallone Carl
Dear sir/madam I am currently using python 3.5.0 and I have been trying to write a program using turtle but is not seem to be working. I have followed all tutarial on the web and when i compare it with my code my am duing everything the same way but it still don't seems to be working I

Re: drawing with the mouse with turtle

2015-02-10 Thread solarteclark
excuse me :) i know this somewhat disscussion was still on the past few years way back 2010 can i still ask about something? :) what syntax or coding will i use if i wanted to do multiple strokes of the mouse? because the [turtle.ondrag(turtle.goto)] that you have suggested have really helped b

Re: Function and turtle help

2014-03-07 Thread Scott W Dunning
On Mar 7, 2014, at 6:16 PM, Lee Harr wrote: >> I am completely new to programming so thanks for any help! > > Not sure it will help, and hopefully I am not self-promoting too much, > but this may be of interest to you: > > http://pynguin.googlecode.com/ > > http://code.google.com/p/pynguin/wi

Re: Function and turtle help

2014-03-07 Thread Lee Harr
> I am completely new to programming so thanks for any help! Not sure it will help, and hopefully I am not self-promoting too much, but this may be of interest to you: http://pynguin.googlecode.com/ http://code.google.com/p/pynguin/wiki/StartProgramming I am interested in feedback from new pro

Re: Function and turtle help

2014-02-22 Thread Scott W Dunning
On Feb 21, 2014, at 9:30 PM, Dave Angel wrote: You’re awesome David! Thanks for taking the time to not only help answer my question but helping me to understand it as well!! Scott -- https://mail.python.org/mailman/listinfo/python-list

Re: Function and turtle help

2014-02-21 Thread Dave Angel
reference http://docs.python.org/3.3/library/turtle.html#turtle.pencolor This assumes Python 3.3, but you didn't say. If you're using 2.x, then change the 3.3 in the link to 2 Notice that I've never actually used the turtle module, and I don't believe I've even looked at th

Re: Function and turtle help

2014-02-21 Thread Scott W Dunning
On Feb 21, 2014, at 7:13 PM, Dave Angel wrote: > Scott W Dunning Wrote in message: >> >> On Feb 20, 2014, at 11:30 PM, Dave Angel wrote: >> >>> Look at turtle.begin_fill and turtle.end_fill >>> >>> That's after making sure your star is a closed shape. >> >> >> >> So, this is what I have

Re: Function and turtle help

2014-02-21 Thread Dave Angel
Scott W Dunning Wrote in message: > > On Feb 20, 2014, at 11:30 PM, Dave Angel wrote: > >> Look at turtle.begin_fill and turtle.end_fill >> >> That's after making sure your star is a closed shape. > > > > So, this is what I have so far and it “works” but, it fills in the star > with b

Re: Function and turtle help

2014-02-21 Thread Scott W Dunning
On Feb 20, 2014, at 11:30 PM, Dave Angel wrote: > Look at turtle.begin_fill and turtle.end_fill > > That's after making sure your star is a closed shape. So, this is what I have so far and it “works” but, it fills in the star with black and as you can see below I am trying to fill it in wit

Re:Function and turtle help

2014-02-20 Thread Dave Angel
Scott W Dunning Wrote in message: > Hello, > > I am trying to make a function that allows me to color in a star that was > drawn in Turtle. I just keep having trouble no matter what I do. I’ll > post the code I have for the star (just in case). The ultimate goal is to &g

Function and turtle help

2014-02-20 Thread Scott W Dunning
Hello, I am trying to make a function that allows me to color in a star that was drawn in Turtle. I just keep having trouble no matter what I do. I’ll post the code I have for the star (just in case). The ultimate goal is to create a script that’ll draw the American flag (we’re learning

Re: Function and turtle help

2014-02-20 Thread Scott W Dunning
On Feb 20, 2014, at 9:41 PM, Scott W Dunning wrote: > Hello, > > I am trying to make a function that allows me to color in a star that was > drawn in Turtle. I just keep having trouble no matter what I do. I’ll post > the code I have for the star (just in case). The ulti

Re: Drawing polygons in python turtle

2014-02-11 Thread Terry Reedy
. Part of the charm is discovering the patterns that emerge when simple actions are repeated. The Python version, turtle, is built on top of tkinter and its Canvas widget. Since I *do* know coordinate geometry and don't care about the moving animal metaphor, I find it easier to use Canvas dir

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 5:19:52 AM UTC+2, geni...@gmail.com wrote: > Going off-topic Which resource do you recommend for learning this > wonderful language My advice won't be good as mentioned before i never dealt with it. You have chance to discover that country yourself or wait for advic

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 5:06:11 AM UTC+2, geni...@gmail.com wrote: > A better way to draw stuff on screen It depends on particular case/figure you wish to draw. Drawing is separate knowledge field with its own set of algorithms. Geometry is field of wonders. i never dealt with this stuff

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Going off-topic Which resource do you recommend for learning this wonderful language -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
A better way to draw stuff on screen -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 5:01:33 AM UTC+2, geni...@gmail.com wrote: > Is there a better way of drawing such as another modules Could you please elaborate with question? What do you mean? -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Is there a better way of drawing such as another modules -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 4:51:56 AM UTC+2, geni...@gmail.com wrote: > so does that mean i have to draw two separate triangles If you need view of crossing triangles - yes, this is the simplest recipe. -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
so does that mean i have to draw two separate triangles -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 4:13:16 AM UTC+2, geni...@gmail.com wrote: > Well how about the star of david what are the angles hexagon is not constructed similar to your program for pentagon because crossing path can't jump from one triangle to another. you have 60 degrees turn after 2 turns edg

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Well how about the star of david what are the angles -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 2:23:11 AM UTC+2, Asaf Las wrote: > On Tuesday, February 11, 2014 1:44:28 AM UTC+2, geni...@gmail.com wrote: > > Hi > > > > can anyone help finding the angle to draw different polygons shapes > > in this example > > import turtle

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 1:44:28 AM UTC+2, geni...@gmail.com wrote: > Hi > > can anyone help finding the angle to draw different polygons shapes > in this example > import turtle > wm = turtle.Screen() > alex = turtle.Turtle() > for i in range(5): > alex.le

Re:Drawing polygons in python turtle

2014-02-10 Thread Dave Angel
genius...@gmail.com Wrote in message: > Hi > can anyone help finding the angle to draw different polygons shapes > > in this example > > import turtle > wm = turtle.Screen() > alex = turtle.Turtle() > for i in range(5): > alex.left(216) > alex.forward

Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Hi can anyone help finding the angle to draw different polygons shapes in this example import turtle wm = turtle.Screen() alex = turtle.Turtle() for i in range(5): alex.left(216) alex.forward(50) wm.exitonclick() Why do we use 216 -- https://mail.python.org/mailman/listinfo/python

Re: Coordinates TK and Turtle

2014-01-28 Thread Peter Otten
dux...@gmail.com wrote: > Hello > > I have some weird results when I run my code which is meant to display a > canvas and a turtle and some text with the turtles coordinates. > > Basically the turtle coordinates do not seem to correspond with the TK > create_text coordin

Coordinates TK and Turtle

2014-01-28 Thread duxbuz
Hello I have some weird results when I run my code which is meant to display a canvas and a turtle and some text with the turtles coordinates. Basically the turtle coordinates do not seem to correspond with the TK create_text coordinates. t1.goto(100,100) canvas_id = cv1.create_text(t1.xcor

On click functions with turtle?

2013-10-20 Thread baujacob
Hi everyone, I have this program that writes out the name "John" in block letters. I was just messing around because we were just introduced to turtle a few weeks ago in class and I'm just getting the hang of it. Before I was using "goto" a certain angle, but now I&#

Re: basic maze problem with turtle

2013-10-14 Thread Joshua Landau
On 13 October 2013 23:18, wrote: > import turtle > userTurtle = turtle.Turtle() > draw = turtle.Turtle() > scr = turtle.Screen() > > def drawMaze(): > draw.pencolor("gold") [lots of lines] > print(userTurtle.pos()) > > scr.onkeypr

Re: basic maze problem with turtle

2013-10-14 Thread Tobiah
On 10/13/2013 04:44 PM, Gary Herron wrote: On 10/13/2013 03:03 PM, Denis McMahon wrote: Except perhaps Nikos. Nikos can probably write you extremely elegant one line python solutions to any coding problem you describe to him. His solutions might suffer the very minor flaw of not working, but the

Re: Trying to force turtle back to beginning of maze after collides with wall

2013-10-14 Thread Denis McMahon
e > maze. The problem is "collision detection" which is an advanced topic > and I'm only in a beginning programming class. Is there anyway I can > force the user back to the starting point when the turtle hits the wall? OK My first observation is that "maze" coul

Re: basic maze problem with turtle

2013-10-14 Thread Antoon Pardon
Op 14-10-13 15:02, Sam Fourman Jr. schreef: > > Who the hell is Nikos? I hear reference to this guy ALL the time, is he > a troll or a python god? > this simply isn't clear.. I have only been on this list a few months. He is the lists help vampire. He comes to the list when his programs break and

Re: basic maze problem with turtle

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 12:02 AM, Sam Fourman Jr. wrote: > Who the hell is Nikos? I hear reference to this guy ALL the time, is he a > troll or a python god? > this simply isn't clear.. I have only been on this list a few months. He's a troll, sometimes goes by the name "Ferrous Cranus", and he r

Re: basic maze problem with turtle

2013-10-14 Thread Alister
On Mon, 14 Oct 2013 13:13:15 +, Neil Cerutti wrote: > On 2013-10-14, Sam Fourman Jr. wrote: >> Who the hell is Nikos? I hear reference to this guy ALL the time, is he >> a troll or a python god? this simply isn't clear.. >> I have only been on this list a few months. > > Check the archives f

  1   2   3   >