def log_exercise(settings, logs, start_log):
completer = MyCompleter([str(k) for k in workouts])
readline.set_completer(completer.complete)
readline.parse_and_bind('tab: complete')
while True:
# because windows has to be special
if sys.platform.startswith('win'):
choose_extra = "(Tab for options)"
else:
choose_extra = "(Double tab for options)"
choose_ = input('What workout did you do? {0}: '.format(choose_extra))
if choose_.capitalize() not in workouts.keys():
pass
else:
if choose_.capitalize() == 'Cardio':
cardio.main(settings, logs)
elif choose_.capitalize() == 'Log':
print("Not yet done")
elif choose_.capitalize() == 'Settings':
settings_change(settings)
else:
physical.main(choose_, settings)
body_checks(settings, start_log)
评论列表
文章目录