No project description provided
Project description
from input_picker import pick_bool, pick_item, Stop, Help
try:
value = pick_bool()
except Help: # when user pick the help
print_your_help()
except Stop: # when user pick the stop
stop_your_app()
Tips: you can handle Stop on root:
if __name__ == '__main__':
try:
main()
except Stop:
print('User stop application.')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
input_picker-0.1.2.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
input_picker-0.1.2.0-py3.6.egg
(11.4 kB
view hashes)