https://github.com/fodydev/afrish
A Rust binding of the Tk graphics toolkit for the afrim IME development.
https://github.com/fodydev/afrish
rust
Last synced: 2 months ago
JSON representation
A Rust binding of the Tk graphics toolkit for the afrim IME development.
- Host: GitHub
- URL: https://github.com/fodydev/afrish
- Owner: fodydev
- License: mit
- Created: 2024-06-06T12:55:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-24T10:34:19.000Z (8 months ago)
- Last Synced: 2025-11-28T03:22:38.975Z (7 months ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# afrish
A Rust binding for the Tk graphics toolkit, designed specifically for the development of the [Afrim IME](https://github.com/fodydev/afrim).
## 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:
```rust
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](https://codeberg.org/peterlane/rstk).