X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fdisplay.py;fp=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fdisplay.py;h=1e408c9e5e52bca4d8bfe3dbb043ee35e3bd88d8;hp=a6c90e7d7526bcb8a1fb6f2ee82f1bd08f870ba8;hb=450875fb3d6f1f6966e1b0f79af0572126eea3d3;hpb=600ceb6d01bc9eae4aa4a3e53edd072c3778277f diff --git a/projects/microb2010/tests/hostsim/display.py b/projects/microb2010/tests/hostsim/display.py index a6c90e7..1e408c9 100644 --- a/projects/microb2010/tests/hostsim/display.py +++ b/projects/microb2010/tests/hostsim/display.py @@ -48,7 +48,7 @@ while True: set_robot(x,y,a) f.close() - """ + k = scene.kb.getkey() x,y,z = scene.center if k == "left": @@ -59,4 +59,5 @@ while True: scene.center = x,y+10,z elif k == "down": scene.center = x,y-10,z - """ + elif k == "k": + robot_trail.pos = robot_trail.pos[0:0]