Closed luckydonald closed 5 years ago
Hey there.
It would be really useful if a default value could be set:
result = YesNo(prompt="Please enter your user", default="root").launch()
Please enter your user [root]: _
When pressing enter and the input being empty (unchanged), that default would be the result.
default
This would also be great with Bullet and Check, there the default element(s) could be already ticked.
Bullet
Check
I was reading the documentation then came here to report the same feature request :+1:
This feature is added! You can now define default in the launch() function.
Hey there.
It would be really useful if a default value could be set:
When pressing enter and the input being empty (unchanged), that
default
would be the result.This would also be great with
Bullet
andCheck
, there thedefault
element(s) could be already ticked.