#!/usr/bin/env python"""Example of confirmation (yes/no) dialog window."""fromprompt_toolkit.shortcutsimportyes_no_dialogdefmain():result=yes_no_dialog(title="Yes/No dialog example",text="Do you want to confirm?").run()print(f"Result = {result}")if__name__=="__main__":main()