[Tutor] Turtle graphics - was Re: (no subject)

2018-10-27 Thread Alan Gauld via Tutor
On 27/10/2018 12:09, Jesse Stockman wrote: > Hi there Hi, Please always provide a meaningful subject line. Also always include the output of your program, especially if its an error message - these are full of useful information. > I need to draw a patten with turtle in python 3.7 but > I cant

Re: [Tutor] Turtle drawing

2018-06-05 Thread Alan Gauld via Tutor
On 05/06/18 21:46, Roger Lea Scherer wrote: > datums = open("C:/Users/Roger/Documents/GitHub/LaunchCode/mystery.txt", "r") > > for aline in datums: > splitted = aline.split() > try:... > except: > while splitted == "UP": > hadir.pu() splitted will never equal 'UP'

[Tutor] Turtle drawing

2018-06-05 Thread Roger Lea Scherer
I give up again. Here's my code which gives no error, but draws something that looks sort of like a dinosaur. I've included the first few lines of the text file mystery so you can see the format I received from the instructions. Please help. Thank you. *Mystery excerpt* UP -218 185 DOWN -

Re: [Tutor] Turtle color question

2018-03-29 Thread Peter Otten
Roger Lea Scherer wrote: > I've tried everything I can think of but cannot get the pencolor to > change. (Although the arrow drawing the boxes changes color.) I've placed > it in places I didn't even think it would work. The arrow draws what looks > like the boxes I expect, but the color looks the

[Tutor] Turtle color question

2018-03-29 Thread Roger Lea Scherer
I've tried everything I can think of but cannot get the pencolor to change. (Although the arrow drawing the boxes changes color.) I've placed it in places I didn't even think it would work. The arrow draws what looks like the boxes I expect, but the color looks the same as the background. So I assi

Re: [Tutor] Turtle Issues

2018-03-06 Thread Alan Gauld via Tutor
On 06/03/18 18:12, Roger Lea Scherer wrote: > I know I don't have to apologize, but I am so independent I hate asking for > help and you guys and gals have been so helpful that now that I'm stuck > again I'm sorry I have to. Thats not a problem and, in programming, is usually seen as a strength n

[Tutor] Turtle Issues

2018-03-06 Thread Roger Lea Scherer
I know I don't have to apologize, but I am so independent I hate asking for help and you guys and gals have been so helpful that now that I'm stuck again I'm sorry I have to. I've looked on StackOverflow and followed their advice (which I can't make work) and went to the python/turtle documentation

Re: [Tutor] turtle question

2017-05-17 Thread Peter Otten
Grace Sanford wrote: > how do you reset the turtle's position without drawing a line from where > it last was? Call turtle.penup() when you want to prevent it from drawing and pendown() to have it draw again. Example: import turtle for i in range(10): # draw a 20 units line turtle.forw

[Tutor] turtle question

2017-05-17 Thread Grace Sanford
how do you reset the turtle's position without drawing a line from where it last was? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] turtle on linux

2016-06-24 Thread Alan Gauld via Tutor
On 24/06/16 09:02, Hershel Millman wrote: > mean by "package manager", so if you could enlighten me, that would be > immensely appreciated. I meant to add that on Fedora the package manager seems to be called PackageKit... There are also command line tools (yum, DNF and rpm) but I'm guessing you'

Re: [Tutor] turtle on linux

2016-06-24 Thread Alan Gauld via Tutor
On 24/06/16 09:02, Hershel Millman wrote: > I tried to import Tkinter and I got this message: > > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named Tkinter > > > And since I am running Linux, you may be under the false impression that I > know what I am d

Re: [Tutor] turtle on linux

2016-06-24 Thread Hershel Millman
I tried to import Tkinter and I got this message: Traceback (most recent call last): File "", line 1, in ImportError: No module named Tkinter And since I am running Linux, you may be under the false impression that I know what I am doing when it comes to using Linux. I have no idea what you m

Re: [Tutor] turtle on linux

2016-06-24 Thread Alan Gauld via Tutor
On 24/06/16 01:21, Hershel Millman wrote: > This is from my terminal on Fedora 24: > > [hmillman@localhost ~]$ python > Python 2.7.10 (default, Sep 24 2015, 17:50:09) > [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. im

[Tutor] turtle on linux

2016-06-24 Thread Hershel Millman
This is from my terminal on Fedora 24: [hmillman@localhost ~]$ python Python 2.7.10 (default, Sep 24 2015, 17:50:09) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import turtle Traceback (most recent call last): File "

Re: [Tutor] : Turtle

2016-06-23 Thread Alan Gauld via Tutor
On 23/06/16 01:52, Hershel Millman wrote: > I found the turtle module on my computer. > import turtle print(turtle.__file__) > /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/turtle.py That's the right turtle module do not rename it. >>> I entered "import

Re: [Tutor] Turtle

2016-06-18 Thread Steven D'Aprano
On Fri, Jun 17, 2016 at 11:25:40PM -0700, Hershel Millman wrote: > Hello tutors, > > I have been learning basic python on my Macintosh computer and > everything I have tried so far has worked, except when I tried to use > the turtle module. I then used my Linux computer and the turtle module >

[Tutor] Turtle

2016-06-18 Thread Hershel Millman
Hello tutors, I have been learning basic python on my Macintosh computer and everything I have tried so far has worked, except when I tried to use the turtle module. I then used my Linux computer and the turtle module still did not work. I tried to use the command line and type "sudo dnf instal

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-29 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote OK, let's eliminate some variables and go back to getting the python script working. Remember, it does work. Not if it doesn't close down cleanly. In my book that's broken! I've used turtle many times and never seen this behaviour before. What does

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-29 Thread Kent Johnson
On Mon, Jul 28, 2008 at 4:44 PM, Dick Moores <[EMAIL PROTECTED]> wrote: > Win XP, Python 2.51 > > The script is at It calls the > Windows console to show the printed data. > > I've successfully used PyInstaller to make an .exe for this. For informed > u

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-29 Thread Dick Moores
At 12:38 AM 7/29/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote Very odd, I assume the python script when executed normally doesn't exhibit such odd behaviour? When I try to stop the script from running not by a Ctrl+Q on the console window, but on the Turtle window, the on

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-29 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote Very odd, I assume the python script when executed normally doesn't exhibit such odd behaviour? When I try to stop the script from running not by a Ctrl+Q on the console window, but on the Turtle window, the only way is to use the Task Manager. OK,

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-28 Thread Dick Moores
At 05:30 PM 7/28/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote Tkinter is involved, turtle usesw Tkinter. Yes, I allowed for that when I made the .exe: python Makespec.py -FKc E:\PyInstaller\MyScripts\randomTriangles_wo_named_colorsV13.exe Means nothing to me, I've never

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-28 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote Tkinter is involved, turtle usesw Tkinter. Yes, I allowed for that when I made the .exe: python Makespec.py -FKc E:\PyInstaller\MyScripts\randomTriangles_wo_named_colorsV13.exe Means nothing to me, I've never found a need to make an exe from a python

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-28 Thread Dick Moores
At 03:32 PM 7/28/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote But I'd like to make a version of the script that doesn't report any data. How can I write it so that the .exe can be easily exited by the user? If Tkinter instead of Turtle were involved, I could have an Exit b

Re: [Tutor] Turtle problem: how to exit the .exe?

2008-07-28 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote But I'd like to make a version of the script that doesn't report any data. How can I write it so that the .exe can be easily exited by the user? If Tkinter instead of Turtle were involved, I could have an Exit button connected to command=root.quit . T

[Tutor] Turtle problem: how to exit the .exe?

2008-07-28 Thread Dick Moores
Win XP, Python 2.51 The script is at It calls the Windows console to show the printed data. I've successfully used PyInstaller to make an .exe for this. For informed users, exiting the program before it finishes is easily and cleanly done by a Ct

Re: [Tutor] Turtle Triangles Problem

2008-06-12 Thread Dick Moores
At 03:04 AM 6/12/2008, Andre Engels wrote: Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/6/12 Dick Moores <[EMAIL PROTECTED]>: > The code is at > < http://py77.python.pastebin.com/f3b6a6f3> > > The problem is shown at < > http://www.rcblue.com/images/Turtle_Triangle_Problem.jp

[Tutor] Turtle Triangles Problem

2008-06-12 Thread Dick Moores
The code is at < http://py77.python.pastebin.com/f3b6a6f3> The problem is shown at < http://www.rcblue.com/images/Turtle_Triangle_Problem.jpg>. I'd very much like to get rid of that last line, in this example the purple(?) one that heads northwest from the same-colored triangle. It's at this poi