summaryrefslogtreecommitdiffstats
path: root/examples/dialogs/messagebox.py
blob: 7b11580d02c97ffd5d58d39a8d9fe37ad6fa38ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
"""
Example of a message box window.
"""

from prompt_toolkit.shortcuts import message_dialog


def main():
    message_dialog(
        title="Example dialog window",
        text="Do you want to continue?\nPress ENTER to quit.",
    ).run()


if __name__ == "__main__":
    main()