20 lines
544 B
Plaintext
20 lines
544 B
Plaintext
import { Button, VerticalBox } from "std-widgets.slint";
|
|
export component App inherits Window {
|
|
|
|
in-out property<int> lobotomised: 0;
|
|
|
|
VerticalBox {
|
|
label := Text {
|
|
text: "Press button to lobotomise one rust programmer";
|
|
font-family: "Consolas";
|
|
font-size: 60px;
|
|
}
|
|
Button {
|
|
text: "Click Me";
|
|
clicked => {
|
|
root.lobotomised += 1;
|
|
label.text = lobotomised + " rust programmers lobotomised";
|
|
}
|
|
}
|
|
}
|
|
} |