afrish

Crates.ioafrish
lib.rsafrish
version0.1.0
sourcesrc
created_at2024-09-06 07:54:48.963485
updated_at2024-09-06 07:54:48.963485
descriptionA Rust binding for the Tk graphics toolkit, made for building the Afrim IME.
homepage
repositoryhttps://github.com/pythonbrad/afrish/
max_upload_size
id1365635
size201,678
Brady Fomegne (pythonbrad)

documentation

README

afrish

A Rust binding for the Tk graphics toolkit, designed specifically for the development of the Afrim IME.

Overview

afrish opens and communicates with Tk's wish program as a separate process. The library provides:

  • low-level functions to directly communicate with wish, suitable for writing additional extensions
  • high-level API to write GUI applications with minimal knowledge of Tk.

Example

A simple hello-world example:

use afrish::*;

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

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

  hello.grid().layout();

  afrish::mainloop();
}

Credits

This project is a clone of rstk.

Commit count: 0

cargo fmt