Skip to content

How to callback with slint_interpreter in rust #4061

Closed Answered by tronical
oheil asked this question in General
Discussion options

You must be logged in to vote

You're probably looking for set_callback. I think you can call it like so: instance.set_callback("button-clicked", || { println!("...") });.

You may have to call it before you call run().

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by oheil
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants