#!/usr/bin/env python
"""
Example of confirmation (yes/no) dialog window.
"""
from prompt_toolkit.shortcuts import yes_no_dialog


def main():
    result = yes_no_dialog(
        title="Yes/No dialog example", text="Do you want to confirm?"
    ).run()

    print(f"Result = {result}")


if __name__ == "__main__":
    main()

137750dbbb058814718c3ef26e1a9e00e67330b5
<mask token>

<mask token>


def main():
    result = yes_no_dialog(title='Yes/No dialog example', text=
        'Do you want to confirm?').run()
    print(f'Result = {result}')


<mask token>

<mask token>


def main():
    result = yes_no_dialog(title='Yes/No dialog example', text=
        'Do you want to confirm?').run()
    print(f'Result = {result}')


if __name__ == '__main__':
    main()

<mask token>
from prompt_toolkit.shortcuts import yes_no_dialog


def main():
    result = yes_no_dialog(title='Yes/No dialog example', text=
        'Do you want to confirm?').run()
    print(f'Result = {result}')


if __name__ == '__main__':
    main()

#!/usr/bin/env python
"""
Example of confirmation (yes/no) dialog window.
"""
from prompt_toolkit.shortcuts import yes_no_dialog


def main():
    result = yes_no_dialog(
        title="Yes/No dialog example", text="Do you want to confirm?"
    ).run()

    print(f"Result = {result}")


if __name__ == "__main__":
    main()
