GlubyTK (Glade+Ruby+GTK) is a tool for creating GTK applications in Ruby with Glade.
Add this line to your application's Gemfile:
$ gem install gluby-tk
The GlubyTK command line tool command is simply called gluby
for simplicity.
$ gluby new my_app_name && cd my_app_name && gluby start
Using Glade, create a new widget template and save it to your project's 'interface' directory with the extension .glade
. Then from the root of your project run
$ gluby rebuild
This command will parse your template and create the required ruby class & bindings.
GlubyTK uses the guard/listen gem to listen for any changes to your interface files. When a change is detected it essentially runs the gluby rebuild
command automatically.
$ gluby listen
NOTE: If you want access to any Glade elements in Ruby code, you will need to define a value for the
Composite -> Class
orNon-composite -> ID
field in Glade.
Bug reports and pull requests are welcome on GitHub at https://github.com/i2097i/gluby-tk.
Feel free to send any comments/improvements suggestions.
The gem is available as open source under the terms of the MIT License.