python - When typing can you change what the text is displayed as? -


this question has answer here:

so making program test password , wondering, when user enters password can stop password showing type in console/gui?

python has covered built-in library:

>>> import getpass >>> pw = getpass.getpass() 

edit: mentioned @matth, won't echo asterisks (*) while user types password.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -