Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neroist/nimtk
Nim bindings for tk
https://github.com/neroist/nimtk
gui nim tcl tk tkinter wrapper
Last synced: 25 days ago
JSON representation
Nim bindings for tk
- Host: GitHub
- URL: https://github.com/neroist/nimtk
- Owner: neroist
- License: mit
- Created: 2024-04-15T23:47:19.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T01:42:56.000Z (7 months ago)
- Last Synced: 2024-10-25T05:54:16.303Z (2 months ago)
- Topics: gui, nim, tcl, tk, tkinter, wrapper
- Language: Nim
- Homepage:
- Size: 1.32 MB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# nimtk
High level wrapper for Tk
## Installation
You may install using nimble
```sh
nimble install nimtk
```This library only depends upon [`nimtcl`](https://github.com/neroist/nimtcl).
## Usage/Documentation
Please see the [examples](/examples/) for library usage. This wrapper should be
*similar enough* to tkinter and Tk to still be intuitive to use.## Differences from tkinter
In tkinter, the `Tk` object both serves as a the Tcl interpreter and the root window
in for Tk. Instead, this is separated in `nimtk`, in which `Tk` only holds the Tcl
interpreter, and `Root` is the root window. Below is common code in all of the
examples:```nim
import nimtk/alllet
tk = newTk()
root = tk.getRoot()...
```If you want to emulate tkinter's behavior with nimtk (for whatever reason?),
`nimtk/tkinter` contains some converters which may be of use. **Still discouraged
though!**## Wrapped functionality from Tk
See https://github.com/neroist/nimtk/issues/1