# User Interface Designer for GTK+ and GNOME

**URL:** <https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537>\
**Category:** Ruby\
**Created:** [August 18, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537 "2006-08-18T22:25:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@felipe](https://www.ruby-forum.com/u/felipe)\
**Post date:** [August 18, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537/1 "2006-08-18T22:25:55Z")

</div>

Hello,  
I’m posting here since I cannot do it in the Ruby-Gnome 2 forum.  
I’m new to ruby and ruby-Gnome2.I’ve written a small script for  
extracting table names from a trace file from Microsoft Analizer. I  
decided I wanted to learn how to do GUI’s so at first I coded from  
scratch a GUI but soon I got tired of doing it by hand. Then I  
downloaded Glade and used it to make a gui pretty fast, but if I wan’t  
to modify the gui for any reasons I suspect that the  
ruby-glade-create-template.rb will create a new file and I’ll have to  
move my code from one file to another. So here is the question, is there  
an alternative to Glade for designing UI’s?

btw, english is not my first language. sorry if I did not make myself  
clear. 🙂

Greetings,  
Felipe

---

<div class="post-metadata">

**Author:** ![felipe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@felipe](https://www.ruby-forum.com/u/felipe)\
**Post date:** [August 19, 2006, 11:46am UTC](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537/2 "2006-08-19T11:46:36Z")

</div>

Felipe Ureta wrote:

> an alternative to Glade for designing UI’s?
> 
> btw, english is not my first language. sorry if I did not make myself  
> clear. 🙂
> 
> Greetings,  
> Felipe
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

The idea behind glade is that you keep the interface separate from the  
code. The ruby-glade-create-template.rb script creates a decent  
starting point, but from then on you should develop the code and  
interface together rather than generating one from the other. All you  
need to do is add appropriate callbacks to your ruby scripts.

---

<div class="post-metadata">

**Author:** ![felipe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@felipe](https://www.ruby-forum.com/u/felipe)\
**Post date:** [August 20, 2006, 10:30am UTC](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537/3 "2006-08-20T10:30:27Z")

</div>

Hi,

Glade can do anything you want it to and is fast too. If you want to  
dynamiccaly load a table, this is perfectly possible. Just make sure  
that you know the name of the parent widget, for any widgets that you  
will add. Or create an empty table of 1x1 and resize it to required  
length and fill it with childs.

I did this myself too. For some example code look at the audio ripper I  
develop: [http://rubyforge.org/frs/?group\_id=1284&release\_id=6293](http://rubyforge.org/frs/?group_id=1284&release_id=6293). The  
file rubyripper\_gtk is what you need.  
It loads the playlist dynamically for any cd that is loaded.

Regards,

crazy88

---

<div class="post-metadata">

**Author:** ![felipe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@felipe](https://www.ruby-forum.com/u/felipe)\
**Post date:** [August 21, 2006, 2:27am UTC](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537/4 "2006-08-21T02:27:48Z")

</div>

Thanks for both of your replies. Crazy88, I’ll look at the code of your  
audio ripper.

Regards,  
Felipe
