Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

the tk extension extracted from core and gem-ified

branch: master

update README

latest commit b5b6333e4b
Roger Pack authored February 19, 2010
Octocat-spinner-32 ext allow work from non /tcl dir too February 19, 2010
Octocat-spinner-32 README update README February 19, 2010
Octocat-spinner-32 Rakefile initial commit January 09, 2010
Octocat-spinner-32 VERSION allow work from non /tcl dir too February 19, 2010
README
the tk extension extracted from core and gem-ified
gem install tk_as_gem

originally extracted from 1.9.1p376, then added a minor change to make it work with mingw/msys.

To install into an existing mingw distro:
install ActiveTcl [c:\tcl] (should add itself to the path)
C:>gem install tk_as_gem

Note: ruby.exe and your tcl dir must be on the same drive.

Might install for linux, as well.

Note that this only works for 1.9 -- for 1.8 mingw you can install some binaries from here:
http://github.com/rdp/ruby_windows_tk

Bugs:

currently to exit out of ruby, once you've done a
require 'tk'
of the gem, you must *first* close all outstanding open Tk windows, THEN exit your ruby process, otherwise it will hang.

Also you "might" need Tcl/Tk 8.4 instead of 8.5 (you certaintly do, for 1.8), with its bin in your path.

To install from other dir:

gem install tk_as_gem -- --with-tcl-dir=/installs/Tcl --with-tk-dir=/installs/Tcl
Something went wrong with that request. Please try again.