Problems running code with Python IDLE
<p>I have been attempting to work an iCreate, roomba without a vacuum cleaner attached using Python 2.7.1 and have created working code. When I type each line in by hand it works perfectly, however when putting all the code in together it stalls and does not operate.</p>

<pre><code>import Create
import VideoCapture
from PIL import Image, Imagechops
import os
robot = Create.Create(3)
camera = VideoCapture.Device(0, 1)
(rgb_red, rgb_green, rgb_blue) = (0, 0, 0)
red = Image.open("Red.jpeg")
(redr, redg, redb) = red.getpixel((0, 0))
blue = Image.open("Blue.jpeg")
(bluer, blueg, blueb) = blue.getpixel((0, 0))
green = Image.open("Green.jpeg")
(greenr, greeng, greenb) = green.getpixel((0, 0))
yellow = Image.open("Yellow.jpeg")
(yellowr, yellowg, yellowb) = yellow.getpixel((0, 0))
camera.getImage(0, 0, 'tl')
camera.saveSnapshot('CurrentPicture.jpeg', 0, 0, 'tl')
pic = Image.open("CurrentPicture.jpeg")
(rgb_red, rgb_green, rgb_blue) = pic.getpixel((0, 0))
os.remove("C:\Python27\CurrentPicture.jpeg")
while 0 == 0:
    if((rgb_red - redr) &lt; (rgb_green - greeng)) and ((rgb_red - redr) &lt; (rgb_blue - blueb)):
        robot.stop()
    elif((rgb_blue - blueb) &lt; (rgb_green - greeng)) and ((rgb_blue - blueb) &lt; (rgb_red - redr)):
        robot.turn(45, 40)
    elif((rgb_green - greeng) &lt; (rgb_red - redr)) and ((rgb_green - greeng) &lt; (rgb_blue - blueb)):
        robot.move(50, 50)
    camera.saveSnapshot('CurrentPicture.jpeg', 0, 0, 'tl')
    pic = Image.open("CurrentPicture.jpeg")
    (rgb_red, rgb_green, rgb_blue) = pic.getpixel((0, 0))
    os.remove("C:\Python27\CurrentPicture.jpeg")    
</code></pre>

<p>Are there any issues with IDLE for running multiple lines and just not working, I am not terribly sure what I should be asking. It is just that nothing happens when I run that entire block together but line by line entering works.</p>

<p>-Any help is greatly appreciated.</p>
