Last active
April 19, 2024 09:42
-
-
Save tronical/c44a30b8b8f34b32aa6e26f567348b1a to your computer and use it in GitHub Desktop.
Simple Slint Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button, VerticalBox } from "std-widgets.slint"; | |
export component AppWindow inherits Window { | |
in-out property<int> counter: 42; | |
callback request-increase-value(); | |
VerticalBox { | |
Text { | |
text: "Counter: \{root.counter}"; | |
} | |
Button { | |
text: "Increase value"; | |
clicked => { | |
root.request-increase-value(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment