rstk 0.3.0

A Rust binding for the Tk graphics toolkit. Tk is suitable for creating simple GUI programs or interactive graphical displays. This library supports a large portion of the Tk API, in a generally rust-like style.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rstk::*;

fn main() {
    if let Ok(root) = rstk::start_wish() {

        let hello = rstk::make_label(&root);
        hello.text("Hello from Rust/Tk");

        hello.grid().row(0).column(0).layout();

        rstk::mainloop();
    } else {
        println!("Failed to start wish program");
    }
}