Great utility "pick". Just wondering how to exit out of the menu that is displayed if the user decides that they do not want to pick anything because what they are looking for isn't being listed... like a list of USB drives. I have even tried a "try/except" block.
try:
title = 'Please choose Drive to write logs to ' + str(removable_volumes) + ': '
value, index = pick(values, title, indicator='=>')
except KeyboardInterrupt as error: # On ctrl-c from keyboard, flush buffer, close file, exit. Break loop.
print("\n\nExiting due to user action...")
Great utility "pick". Just wondering how to exit out of the menu that is displayed if the user decides that they do not want to pick anything because what they are looking for isn't being listed... like a list of USB drives. I have even tried a "try/except" block.
Thanks, Bob