Crates.io | dialog |
lib.rs | dialog |
version | 0.3.0 |
source | src |
created_at | 2019-01-08 04:18:23.020851 |
updated_at | 2019-12-10 19:07:58.748504 |
description | Display dialog boxes using various backends |
homepage | |
repository | https://git.ireas.org/dialog-rs/ |
max_upload_size | |
id | 106298 |
size | 55,205 |
A Rust library for displaying dialog boxes using various backends.
Currently dialog-rs
supports input, message, password and question dialogs.
It can use the dialog
, kdialog
, or zenity
tools to display the dialog
boxes. If none of these tools is available, the dialogs are printed to the
standard output.
use dialog::DialogBox;
let choice = dialog::Question::new("Would you like to install Rust?")
.title("Rust Installation")
.show()
.expect("Could not display dialog box");
if choice == dialog::Choice::Yes {
dialog::Message::new("You made the right choice!")
.title("Rust Installation")
.show()
.expect("Could not display dialog box");
}
For bug reports, patches, feature requests or other messages, please send a mail to dialog-rs-dev@ireas.org.
This project is licensed under the MIT License.
dialog-rs
complies with version 3.0 of the REUSE specification.