aboutsummaryrefslogtreecommitdiff
path: root/examples/message.rs
blob: a72ef00c9f10a68580d4be68847beb7173a3e559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT

use std::io::Result;

use dialog::DialogBox;

fn main() -> Result<()> {
    dialog::Message::new("This is a message.").show()?;

    dialog::Message::new("This is a message.")
        .title("And this is a title:")
        .show()
}