vendredi 31 mars 2017

Turtle graphics in python bringing me to a halt

So i have worked with several different functions within the limits of my python program, i have 3.5, but i keep hitting roadblocks and have multiple questions, first, i should explain that i have trouble learning things sometimes (due to learning disabilities) BUT, once i have learned something i dont forget it and it usually just takes different methods of explanation for me to understand/grasp the concepts. So, with that in mind, most of the tutorial information for 'installing a module for importing' i am not understanding on here, i think i need like a step by step info page but when i try and just do things from what i have seen, my computer is not doing them. i was able to get turtle installed somehow, though beforehand i had trouble installing tkinter on its own, of course now that is working. I am trying to create a program for random graphics within a controlled environment, so instead of just a program that scribbles, i have a program that designs its own images and shapes, but at random, where i never will have the same run twice, and i never will know what it is producing ahead of time. kind of like those adult coloring book pages will look. i have a turtle screen that currently is producing such images, but i cannot get the output canvases to save, for some reason, though i know they will only be in postscript if i can get them. secondly, i would like to save them and be able to recall the image that is created, for later use with another/other programs. i am working on this so that i can use them for another purpose once they have been output. the modules that my computer seems to stubbornly NOT want to work with, include matplotlib, pylab, (scipy??), (not sure if i spelled that one right or if its backwards), and some other simple number python functions like that. also, for whatever reason, within the limits of the previously explained program, the one that creates a randomized design, i have not been able to successfully define the created shapes for duplication onscreen. i was trying to see first about saving the image to a file to recall before, but then when i could not get the images to be recalled without them being on a webpage first, then i just tried to get it to duplicate within the program. it is not working within the settings of a 'begin_poly' to 'end_poly' when i ask it to 'get_poly', it does nothing and will not create the same shape again elsewhere on the page. so i can either try and get it to do THAT or i can try and save and recall an image and, say use the recalled image in other ways to create a larger and overall 'bigger picture'. these are some of the limitations i have come across and i know, absolutely no one, near me who works with python. so i am struggling trying to understand some of the stuff i am finding online, obviously i am a bit new to the language, however, when i start picking things up and understanding them, i love all of the things that programming has opened up for me to do! it makes ideas that i have in my head, a lot easier for me to put on-screen for others to see visually what i am thinking, rather than trying to explain verbally.. any help is much appreciated here.

Aucun commentaire:

Enregistrer un commentaire