Python command line UI
        Posted  
        
            by hdx
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by hdx
        
        
        
        Published on 2010-05-25T17:41:45Z
        Indexed on 
            2010/05/25
            17:51 UTC
        
        
        Read the original article
        Hit count: 340
        
Hey guys/gals I'm writing a python script that fixes some duplicate issues on my database. I would like to display some progress status to the users, currently I just print it like this:
print "Merged " + str(idx) + " out of " + str(totalCount);
The problem is that it prints that in a new line for every record and that does not look so good :) I'd like to either always print the string above on the same line on the screen or use some smart widget that displays it in some sort of progress bar.
I intent to run this on the command line, any suggestions will be much appreciated.
© Stack Overflow or respective owner