|
|
|
|
|
by throwuwu
928 days ago
|
|
Did you use gpt4? I asked it to give me some examples code for a dialog box with an input field and a button and it gave me this: 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();
} |
|
I do not have a GPT4 subscription, i did not bother because it is so slow, limited queries etc. If the cutoff date is improved, like being updated periodically i may think about it. (Late response, forgot about the comment!)