Project

gluby-tk

0.0
No commit activity in last 3 years
No release in over 3 years
A tool for creating GTK applications using Ruby and Glade
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.5.0

Runtime

~> 3.1.1
~> 3.1.5
~> 1.7.1
~> 6.1.0
~> 0.6.0
 Project Readme

GlubyTK

Current Version:

Gem Version

CI Status:

Master: master

Develop: develop

GlubyTK (Glade+Ruby+GTK) is a tool for creating GTK applications in Ruby with Glade.

Installation

Add this line to your application's Gemfile:

$ gem install gluby-tk

Usage

The GlubyTK command line tool command is simply called gluby for simplicity.

Create & run a new Gluby project

$ gluby new my_app_name && cd my_app_name && gluby start

Add a new glade template

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.

Listening for changes

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 or Non-composite -> ID field in Glade.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/i2097i/gluby-tk.

Feel free to send any comments/improvements suggestions.

License

The gem is available as open source under the terms of the MIT License.