Description
When using the yesno method, the results is a boolean which is actually the opposite of what described
Steps to Reproduce
- start a simple yesno
- select yes
- the resulting boolean is set to false
Actual result:
False
Expected result:
True
Reproduces how often:
Systematic
Version
- Operating System: 12.3.1 MacOs
- Python: 3.10.3
- whiptail: 0.3.2
Installation source
PyPI/pip
Other Additional Information:
From dialog/whiptail docs: yesno return (0=yes, 1=no)
This bit of code:
return bool(self.run("yesno", msg, extra_args=[defaultno], exit_on=[255]).returncode)
should actually be:
return not bool(self.run("yesno", msg, extra_args=[defaultno], exit_on=[255]).returncode)
Description
When using the yesno method, the results is a boolean which is actually the opposite of what described
Steps to Reproduce
Actual result:
False
Expected result:
True
Reproduces how often:
Systematic
Version
Installation source
PyPI/pip
Other Additional Information:
From dialog/whiptail docs: yesno return (0=yes, 1=no)
This bit of code:
return bool(self.run("yesno", msg, extra_args=[defaultno], exit_on=[255]).returncode)should actually be:
return not bool(self.run("yesno", msg, extra_args=[defaultno], exit_on=[255]).returncode)