Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am writing a small desktop GUI application using Ruby and Gtk2. I am using RubyMine 3 on Linux (Fedora). I created a simple class to create a Gtk Window but now I feel it takes more time to just keep adding code for a Button, Drop Down and TextBox etc. I need to write even more code if the DropDown needs to be populated at run-time.

Is there any Ruby Gtk IDE which supports adding Controls with simple drag-n-drop? At least I can focus on the business logic instead of just defining position and sizes of controls.

One more question. I subscribed to Ruby-Forum mailing list but it is often flooded with Spam. Which is the official Ruby forum? Recently NetBeans has withdrawn support for Ruby. Is it worth to learn Ruby seriously and use it in commercial environment or not?

share|improve this question

closed as off-topic by MichaelT, gnat, Bart van Ingen Schenau, GlenH7, thorsten müller Jan 8 '14 at 10:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – MichaelT, gnat, Bart van Ingen Schenau, GlenH7, thorsten müller
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

I haven't tried it myself, but when asking similar questions about doing GTK layouts in Ruby on StackOverflow, I was recommended VisualRuby.

It looks fairly solid to me, though unfortunately it was recommended after I finished doing my layouts (and considering that this answer is coming late, I fear the same may be true for you). It looks like it's basically a convenient text editor/layout editor that merges ruby and glade/gtk together. Seems like it'd get the job done.

As for Netbeans, I'm not positive, but I think you can still get ruby support as a plugin.

share|improve this answer

Usually when building GUIs using GTK+ they design the application in Glade and then import it into the code via GtkBuilder. From the Glade website.

Glade is a RAD tool to enable quick & easy development of user interfaces for the GTK+ toolkit and the GNOME desktop environment.

The user interfaces designed in Glade are saved as XML, and by using the GtkBuilder GTK+ object these can be loaded by applications dynamically as needed.

By using GtkBuilder, Glade XML files can be used in numerous programming languages including C, C++, C#, Vala, Java, Perl, Python,and others.

And then you would use Gtk::Builder to import the XML into the equivalent Ruby code. For a barebones example you can read this Stack Overflow question.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.