No description
Find a file
2024-06-05 21:42:53 -04:00
examples small changes to examples 2024-06-05 21:42:53 -04:00
src shift types 2024-06-05 21:42:38 -04:00
tests init 2024-04-15 20:05:57 -04:00
.gitignore ignore todo thx 2024-05-13 12:36:41 -04:00
LICENSE add license 2024-05-14 01:56:29 -04:00
nimdoc.cfg add nimdoc config 2024-05-13 03:51:06 -04:00
nimtk.nimble add todo 2024-05-28 20:50:55 -04:00
readme.md dont use relative path in readme 2024-05-30 11:34:53 -04:00

nimtk

High level wrapper for Tk

Installation

You may install using nimble

nimble install nimtk

This library only depends upon nimtcl.

Usage/Documentation

Please see the 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:

import nimtk/all

let
  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