I have problem with this script in LiClipse(Eclipse)
import stdio
import stddraw
# Read x and y scales from standard input, and configure standard
# draw accordingly. Then read points from standard input until
# end-of-file, and plot them on standard draw.
x0 = stdio.readFloat()
y0 = stdio.readFloat()
x1 = stdio.readFloat()
y1 = stdio.readFloat()
stddraw.setXscale(x0, x1)
stddraw.setYscale(y0, y1)
# Read and plot the points.
stddraw.setPenRadius(0.0)
while not stdio.isEmpty():
x = stdio.readFloat()
y = stdio.readFloat()
stddraw.point(x, y)
stddraw.show()
I use this file as "Input file" in "Run configurations".
I get a black stddraw window which does not respond. If I type "Ctrl-Z" in LiClipse console, then I get a result sometimes.
I've run this script in debugger - it stops on line of stdio.py (with operator "line = sys.stdin.readline()") for last line of usa.txt.
I've run this file in Geany - it works!
Is it a bug in PyDeve (Eclipse)?
Thanks!