I hope you like organized crime
864 karma · joined November 10, 2022
Write code for the wise cracking door AI instead.
Those names should live in infamy
use slint::slint;
slint! { DialogBox := Window { width: 400px; height: 200px; title: "Input Dialog";
VerticalBox {
padding: 20px;
spacing: 10px;
TextInput {
id: input_field;
placeholder_text: "Enter text here";
}
Button {
text: "Submit";
clicked => {
// Handle the button click event
println!("Input: {}", input_field.text());
}
}
}
}
}fn main() { DialogBox::new().run(); }