Tk is a GUI toolkit associated with the Tcl programming language, but is used as a toolkit elsewhere.
I primarily used it with Ruby, which it comes with.
2007-03-11 - ruby-tk (version not recorded) on PCLinuxOS 2007-test3
Ruby and Tk ∞
- Ruby-Tk FAQ
There doesn't appear to be a proper homepage, nor any real information specific to Ruby/Tk!
Ruby-Tk examples are included with the standard Ruby Windows distribution.
Ruby/Tk documentation -- Translated to English from the draft documentation.
- The first in a three-part series that teaches you how to use Ruby and Tk on your Mac OS X system.
- Ruby Tk WebBrowser Plugin
For PCLinuxOS users, it is available as a synaptic package.
2007-03-11 - ruby-tk (version not recorded) ∞
PCLinuxOS 2007-test3 has apt-get install ruby-tk but that doesn't seem to work:
/usr/lib/ruby/1.8/tk.rb:1102:in `initialize': Can't find a usable init.tcl in the following directories: (RuntimeError) /usr/lib/tcl8.4 /usr/lib/tcl8.4 /lib/tcl8.4 /usr/library /library /tcl8.4.13/library /usr/lib/tcl8.4 This probably means that Tcl wasn't installed properly. from /usr/lib/ruby/1.8/tk.rb:1102:in `new' from /usr/lib/ruby/1.8/tk.rb:1102 from ./pkg_checker.rb:7:in `require' from ./pkg_checker.rb:7
So I downloaded ActiveState's ActiveTcl and installed it.
Then I did:
ln -s /opt/ActiveTcl-8.4/lib/tcl8.4/ /usr/lib/
pkg_checker.rb gives me lots of stuff..
Now I want to install tile.
checking for correct TEA configuration... ok (TEA 3.5) checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions make: *** No targets specified and no makefile found. Stop.
checking for correct TEA configuration... ok (TEA 3.5) checking for Tcl configuration... found /opt/ActiveTcl-8.4/lib/tclConfig.sh checking for existence of /opt/ActiveTcl-8.4/lib/tclConfig.sh... loading checking for Tk configuration... configure: WARNING: Can't find Tk configuration definitions
An improved themeing engine for Tk
gem install tile doesn't work. I'm not sure how to install it.
require 'tk' require 'tkextlib/tile' Tk::Tile.__Import_Tile_Widgets__