Skip to content
/ afrish Public

A Rust binding of the Tk graphics toolkit for the afrim IME development.

License

Notifications You must be signed in to change notification settings

fodydev/afrish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Rust binding of the Tk graphics toolkit for the afrim IME development.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages