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
15
16
use afrish::*;

fn setup(root: &impl afrish::TkWidget) {
    let hello = afrish::make_label(root);
    hello.text("Hello from Rust/Tk");

    hello.grid().layout();
}

fn main() {
    let root = afrish::start_wish().unwrap();

    setup(&root);

    afrish::mainloop();
}