I have added a very simple and primitive GUI to my Belgacom ISP usage monitoring utility, belgamonitor. I must admit that this is my first time doing Ruby/Tk GUI programming. 🙂 So expect a bizarre looking GUI such as this one:
I have used ActiveState’s Tcl/Tk and Ruby bindings for it. Unfortunately the current mainstream version of Ruby (at least for MS Windows) does not work with Tcl/Tk 8.5 so I had to uninstall 8.5 and install 8.4, I really wish I could have all the latest features of ActiveState Tcl/Tk such as native-looking themes for MS Windows and GNU/Linux.
If you don’t install 8.4 but the brand new version 8.5 of ActiveState’s Tcl/Tk you’ll get an error message similar to the one below when you invoke
require 'tk' in your Ruby application:
c:/ruby/lib/ruby/1.8/i386-mswin32/tcltklib.so: 126: The specified module could not be found. - c:/ruby/lib/ruby/1.8/i386-mswin32/tcltklib.so (LoadError)