Software > Programming >
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)
- was http://members.chello.nl/~k.vangelder/ruby/learntk/
- Ruby-Tk FAQ
- was http://members.chello.nl/~k.vangelder/ruby/learntk/
- http://www.havenrock.com/developer/ruby-tk/index.html/
- https://web.archive.org/web/20070717201546/http://members.at.infoseek.co.jp:80/shiroikumo/ruby/rubytk/index-en.html
- https://wiki.tcl-lang.org/page/Ruby
RubyTk / Tk - RubyTk on OSX
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.
-
https://web.archive.org/*/www.macdevcenter.com/pub/a/mac/2004/06/25/ruby_pt1.html
- 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/tkextlib/pkg_checker.rb
/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/
and now pkg_checker.rb
gives me lots of stuff..
Now I want to install tile.
./configure
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.
umm..
./configure --with-tcl=/opt/ActiveTcl-8.4/lib/
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
Tile ∞
http://tktable.sourceforge.net/tile/
http://tktable.sourceforge.net/tile/doc/index.html
An improved themeing engine for Tk
gem install tile
doesn't work. I'm not sure how to install it.
irb
require 'tk' require 'tkextlib/tile' Tk::Tile.__Import_Tile_Widgets__
Someday tile might get integrated
Last updated 2021-01-11 at 20:22:11