- Notifications
You must be signed in to change notification settings - Fork0
(Work In Progress) dtk is a D wrapper of the Tcl/Tk graphics library.
License
AndrejMitrovic/dtk
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NOTE: This project is currently being updated to work with the latest compilers. Please have patience.
This is a D wrapper of the Tcl/Tk graphics library. It is based on Tcl/Tk v8.6.0.0.
Currentlydtk has been tested onWindows 7 x64 andLinux Manjaro XFCE 0.8.9 x64.
However, drag & drop has currently only been implemented on Windows.
Drag & drop is not a built-in feature of Tk but is provided by the D wrapper.
Homepage:https://github.com/AndrejMitrovic/dtk
Before usingdtk you will need to install theTcl andTk shared libraries,versioned atv8.6.0.0 or newer.
You can download and extract theIronTcl distribution.
Note: You need to add the path to the IronTcl Tcl/Tk DLLs into yourPATH
environment variable, or alternatively copy the Tcl/Tk DLLs into the currentpath of your executable.
Use your package manager to install theTk andTcl shared libraries.
For example:
$ sudo apt-get install -y tk8.6
Usedub to run any of the examples. Simply prependdub run dtk:
before the example name when callingdub:
$ dub run dtk:buttons
Also trymenus,images, and other examples found in theexamples folder.
You can alsocd
into an example's directory and calldub
to run that example.
Rundub alone in the root project directory to builddtk as a static library:
$ dub
You can test individual modules with:
$ dtest=dtk.tests.events_keyboard dub test
Documentation and tutorials are planned to be written soon. Stay tuned!
- IronTcl Tcl/Tk distribution:https://www.irontcl.com/
- Tcl v8.6 reference links:http://www.tcl.tk/man/tcl8.6/
- Tcl v8.6 Tcl commands:http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm
- Tcl v8.6 Tk commands:http://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm
- Tcl Wiki book:http://en.wikibooks.org/wiki/Tcl_Programming/Tk
- Tk tutorial:http://www.tkdocs.com/
Distributed under theBoost Software License, Version 1.0.