afrish 0.1.1

A Rust binding for the Tk graphics toolkit, made for building the Afrim IME.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use afrish::*;

fn main() {
    if let Ok(root) = afrish::start_wish() {
        let hello = afrish::make_label(&root);
        hello.text("Hello from Rust/Tk");

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

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