For this assignment, you must draw a dog named whatever the user asks, and you must draw it wherever they click. And you must draw another when and where the user clicks again. Keep this up until there are 10 dogs on the screen. At that point, creating a new dog should also cause the oldest dog to be erased (the .undraw()
method should be of help here).
In order to do this assignment, you should make a Dog class, and you should keep the 10 dogs on the screen in a list. Also, when the user clicks on the window you should get the text stored in the Entry box to name the dog. You don't have to make a stick figure dog, draw it however you want - get artistic! I have attached 3 screenshots from my implementation to try and help you out (click on one of them to view it full size), but if you have any further questions, please don't hesitate to ask either below, by email, IM, or in class or office hours.
At the very beginning | About to make the 8th dog, which I've chosen to name "eighth" | After making the eleventh dog (named "eleventh"). Note that the first dog (named "first") has been undrawn. |
---|
Good luck!
Ask me if there are any questions, and remember that elegance counts! peter@cs.uoregon.edu, or simply commenting below will all reach me immediately. Also recommended is coming in to office hours if you have any questions.
Turn your project in using the following form:
Questions? Answers!