Litt bedre formatering av y/n i confirm.
This commit is contained in:
parent
e162f415be
commit
5dbf13ea68
|
@ -369,7 +369,7 @@ class ConfirmMenu(Menu):
|
||||||
self.default=default
|
self.default=default
|
||||||
|
|
||||||
def _execute(self):
|
def _execute(self):
|
||||||
options = {True: 'Y/n', False: 'y/N', None: 'y/n'}[self.default]
|
options = {True: '[y]/n', False: 'y/[n]', None: 'y/n'}[self.default]
|
||||||
while True:
|
while True:
|
||||||
result = self.input_str('%s (%s) ' % (self.prompt, options))
|
result = self.input_str('%s (%s) ' % (self.prompt, options))
|
||||||
result = result.lower()
|
result = result.lower()
|
||||||
|
|
Loading…
Reference in New Issue