[PYTHON] How to hide user input in PySimple GUI

sample

simple.py


import PySimpleGUI as sg

layout = [
    [sg.Text("username : "), sg.InputText(key='username')],
    [sg.Text("password : "), sg.InputText(key='password', password_char='*')],
]

window = sg.Window("simple.py", layout)


while True:
    values = window.read()


window.close()

result

スクリーンショット 2020-07-18 2.24.35.png

Recommended Posts

How to hide user input in PySimple GUI
How to right click using keyboard input in RPA?
How to develop in Python
[Python] How to use input ()
[Go language] How to get terminal input in real time
How to update user information when logging in to Django RemoteUserMiddleware
[Django] How to give input values in advance with ModelForm
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
How to use classes in Theano
How to collect images in Python
How to update Spyder in Anaconda
How to use SQLite in Python
How to create an email user
How to convert 0.5 to 1056964608 in one shot
How to reflect CSS in Django
How to kill processes in bulk
How to use Mysql in python
How to wrap C in Python
How to use PubChem in Python
How to run TensorFlow 1.0 code in 2.0
How to handle Japanese in Python
How to log in to Docker + NGINX
How to call PyTorch in Julia
How to judge that the cross key is input in Python3
How to use calculated columns in CASTable
[Introduction to Python] How to use class in Python?
How to suppress display error in matplotlib
How to access environment variables in Python
How to dynamically define variables in Python
How to do R chartr () in Python
How to use FastAPI ② Advanced --User Guide
How to convert csv to tsv in CLI
How to delete expired sessions in Django
[Itertools.permutations] How to put permutations in Python
How to use Google Test in C
How to specify a .ui file in the dialog / widget GUI in PySide
How to implement nested serializer in drf-flex-fields
How to work with BigQuery in Python
Display Matplotlib xy graph in PySimple GUI.
How to execute commands in jupyter notebook
How to do'git fetch --tags' in GitPython
How to get a stacktrace in python
How to display multiplication table in python
How to store CSV data in Amazon Kinesis Streams with standard input
How to extract polygon area in Python
How to check opencv version in python
How to enable SSL (TLS) in Apache
How to use Anaconda interpreter in PyCharm
How to specify non-check target in Flake8
How to handle consecutive values in MySQL
How to switch python versions in cloud9
How to adjust image contrast in Python
How to use __slots__ in Python class
How to hide warnings that do not affect execution in Jupyter Notebook
How to do Server-Sent Events in Django
How to use regular expressions in Python
How to implement Scroll View in pythonista 1
How to convert DateTimeField format in Django
How to use Map in Android ViewPager
How to display Hello world in python