python: create art with xturtle and random, part 1 (English) [ID:551] (1/4)

in series: Python: create art with xturtle, random and genetic_algorithm (English)

video tutorial by felix schaber and Horst Jens, added 03/08

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

Felix shows first how the xturtle module works in combination with a for loop in python. Later he shows how the randint() function of the random module works. Finally, he demonstrate a script that will create 20 different patterns by using random values and ask the user each time how much he liked the pattern (with an easygui dialog).

This video is licensed under the creative commons BY NC SA license.

http://i.creativecommons.org/l/by-nc-sa/2.0/at/88x31.png

To try out what Felix show you, you need those programs:

Python http://www.python.org

Xturtle http://ada.rg16.asn-wien.ac.at/~python/xturtle/

easygui http://www.ferg.org/easygui/

You maybe also want to use the code editor Geany like Felix does at the end of this video tutorial.

The whole script can be found in the showmedo wiki.

If you find some interesting patterns created by this script, please send the result file (result.txt). The data will be used for the next project.

http://wiki.showmedo.com/images/e/ed/Horstjens_Felix_xturtle.png

screenshot of xturtle script in action

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 1507 (since July 30th)
  • Plays in last week: 2
  • Published: 80 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>








All comments excluding tick-boxed quick-comments

17. Shanavas Mon, 06 Sep 2010 18:57

its very nice


where is the code?


from 1 to 10 i give 4

Very good from a child :)


Thanks a lot of!! I'm starting with phyton and I need to make some proggrams using turtle and xturtle and your videas are util. Thanks again!!!


12. anonymous Mon, 23 Nov 2009 09:22

All Business - all pertinent. Excellent!


11. anonymous Wed, 21 Oct 2009 06:58

I think you are very good.


10. anonymous Thu, 15 Oct 2009 16:01

thanks for your example and your work.

fco


9. anonymous Mon, 24 Aug 2009 04:38

Thank you for the excellent tutorial


8. anonymous Sun, 23 Aug 2009 07:14

Nice, thank you.


great work! it's nice to write some code, then get visual feedback.


6. anonymous Wed, 15 Jul 2009 01:11

This video is great. Even though the camstream was choppy the content made up for it!


5. anonymous Sun, 05 Jul 2009 05:16

very nice .. :)


Thank you for debugging the code, i removed the wrong line in the wiki.

Please note that you can edit the wiki (if logged in) and that you can leave your email-address while writing comments so that people can write you personally.


3. anonymous Thu, 20 Nov 2008 15:43

Hi Felix!

Very nice job, only remove a fragment of code

[[image:horstjens_Felix3.png|thumb]]

in the script #3, string #40, at the wiki.

Best wishes.


Hi Felix. This is a very nice video, well done. I didn't know that there was a Turtle program for Python, it is nice to see it in action :-)

There is a typo in your description text - you say "showmedo wiki here" but there isn't a link to the wiki. If you can fix that then it will be perfect!

Cheers,

Ian.


Video published, thanks for contributing to ShowMeDo


Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Content

Feedback

Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.

feedback@showmedo.com