Typing letters slowly using sys

John Gordon gordon at panix.com
Fri Apr 5 10:31:03 EDT 2013


In <44fa9565-c6cd-4a46-ad28-97417b403444 at googlegroups.com> mattgraves7 at gmail.com writes:

> dots = ('............')
> for x in dots:
>      sys.stdout.write(x)
>      sys.stdout.flush()
>      time.sleep(0.2)
> 				
> I cannot for the life of me figure out how to get the dots to appear on
> the same line as "Loading". Every way that I have attempted, the word
> "Loading" appears and then the dots appear on the next line. 

How are you printing the "Loading" text?  (It would have helped a lot to
show us that code.)

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list