[Tutor] Is there any way to move the print cursor in IDLE?

Alan Gauld alan.gauld at btinternet.com
Wed Nov 25 20:44:03 CET 2009


"Luhmann" <luhmann_br at yahoo.com> wrote

>>> for a in range(int(1e+307)):... a=str(a)... b='\b'*len(a)... print(b,a, 
>>> sep='',end='')
> But this only works on the command prompt, in IDLE it will flood the 
> screen. How do I do it?


I don't think you can since IDLEs output window does not obey the
terminal control codes of the console.

You would need to create a GUI display window and place the
output there. EasyGUI may provide a suitable mechanism for doing it.

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/ 




More information about the Tutor mailing list