Very cool! Where is <font size="-1">Inky, Blinky, Pinky, and Clyde? ;-) Maybe dog catchers would be better foes for Dusty. </font><br><br><br><div><span class="gmail_quote">On 5/18/07, <b class="gmail_sendername">Teresa Stanton
</b> &lt;<a href="mailto:tms43@clearwire.net">tms43@clearwire.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all:
<br><br>Remember when I was having problems moving my .gif around my Tkinter maze?<br>Well, I was going about it all wrong (as some pointed out).&nbsp;&nbsp;What REALLY<br>works is a graph.&nbsp;&nbsp;I used a dictionary, the keys are main coordinates that
<br>are a path that the .gif follows using a greedy algorithm that finds all the<br>paths to a determined location.&nbsp;&nbsp;The definition of the keys are all the<br>possible directions the .gif can go.&nbsp;&nbsp;Not all paths are covered on purpose.
<br>In any case, here is the updated code, for those who asked me to post it.<br>I&#39;m hoping to have it completed next week, without the gif of my dog (lol)<br>and a bad guy or two to follow the gif that will be used in the maze.
<br><br>The next thing I have to do is bind an event to the arrow keys that will<br>update the current x and y position.. I haven&#39;t quite worked that out yet.<br>Right now the gif moves through the maze based on the path.&nbsp;&nbsp;Now the event
<br>(an keyboard arrow) should tell it to go to that direction at the next turn.<br>The function that defines the move is called move_gif().&nbsp;&nbsp;I could use some<br>ideas because I keep getting stuck on the details. How does the event effect
<br>the current course through the maze? Does it somehow update the current call<br>to find_all_paths?<br>Or some sort of Helper function that interrupts the current path at a vertex<br>giving it a new path?&nbsp;&nbsp;That one seems most likely, but I&#39;m still stuck on
<br>how to stop at the vertex and move to the new location.&nbsp;&nbsp;Any help would be<br>appreciated.<br><br>TYIA<br><br>T<br><br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">
Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br><br><br></blockquote></div><br>