The Ruby GUI debacle

Team,

I truly hate to bring this subject back to the forum, as it is like
killing a dead horse! But I can't help it, as my frustration keeps on
growing!

I am a Ruby, kind of, newbie. I've been in and out of Ruby many times
for a few years now.
I am sure that I and other people (I think) could be using Ruby more
often if there were a "simple" GUI development environment. I put
simple in quote because I understand that it is a very subjective
word.
In the past I experimented with several GUI toolkits, which I know are
excellent GUI toolkit bindings for ruby, including: Qt, Gtk, Wx, Fox
and Tk. I also played or tried playing with Monkeybars with Netbeans
and JRuby; and Shoes. Against my free will I was willing to give it a
try to IronRuby and Ruby on Steel.

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

I actually thought that Monkeybars was the answer to my prayers, but I
guess I did not prayed loud enough or perhaps I need to offer
sacrifices to the GUI Toolkits gods. The point is that Monkeybars was
so involved that I went through the tutorial once or twice and then
gave up.
The WX people are nice enough to offer help. But I don't want to
impose on anyone. To compound my problem I find most tutorials
outdated and many times not explicit enough for beginners.

I also, naively, thought that since IronRuby was from MS, perhaps they
would have a nice drag&drop GUI design IDE.

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

Thank you for reaching this part of my note, unless you jumped around,
which is OK also!

···

--
Ruby Student

Ruby Student wrote:

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

Sorry, I cannot recommend you something similar for Windows (I don't use
it), but for mac development the .nib files, created with Interface
Builder (a standard Apple GUI creating app, comes bundled with Xcode,
freeware) shall do the thing.
In a nutshell: in Interface Builder you create the elements via
drag-n-drop, then you assign certain actions to certain elements.
You can develop in such a way using MacRuby or RubyCocoa(Ruby with a
Cocoa API).

···

--
Posted via http://www.ruby-forum.com/\.

You could try WideStudio. It does allow you to create a GUI by dragging and dropping.

These are the programming notes for Ruby:
http://www.widestudio.org/EE/prog-ruby/prog.html
WideStudio Programming Guide [Hello World]

and the download is at:

Cheers,
Mohit.
11/1/2010 | 2:11 AM.

···

On 11/1/2010 1:21 AM, Ruby Student wrote:

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

Good Morning,

···

On Sun, Jan 10, 2010 at 9:21 AM, Ruby Student <ruby.student@gmail.com>wrote:

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

Have a look at XRCise (http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise\)
- should be pretty close to what you want (if you want to use wx).

John

http://www.macruby.org/

···

On 10 janv. 2010, at 18:21, Ruby Student wrote:

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know.

--
Luc Heinrich - luc@honk-honk.com

Thank you to everyone that already posted and answer.

If at all possible, I would like a cross-platform package!

···

On Sun, Jan 10, 2010 at 12:21 PM, Ruby Student <ruby.student@gmail.com> wrote:

Team,

I truly hate to bring this subject back to the forum, as it is like
killing a dead horse! But I can't help it, as my frustration keeps on
growing!

I am a Ruby, kind of, newbie. I've been in and out of Ruby many times
for a few years now.
I am sure that I and other people (I think) could be using Ruby more
often if there were a "simple" GUI development environment. I put
simple in quote because I understand that it is a very subjective
word.
In the past I experimented with several GUI toolkits, which I know are
excellent GUI toolkit bindings for ruby, including: Qt, Gtk, Wx, Fox
and Tk. I also played or tried playing with Monkeybars with Netbeans
and JRuby; and Shoes. Against my free will I was willing to give it a
try to IronRuby and Ruby on Steel.

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

I actually thought that Monkeybars was the answer to my prayers, but I
guess I did not prayed loud enough or perhaps I need to offer
sacrifices to the GUI Toolkits gods. The point is that Monkeybars was
so involved that I went through the tutorial once or twice and then
gave up.
The WX people are nice enough to offer help. But I don't want to
impose on anyone. To compound my problem I find most tutorials
outdated and many times not explicit enough for beginners.

I also, naively, thought that since IronRuby was from MS, perhaps they
would have a nice drag&drop GUI design IDE.

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

Thank you for reaching this part of my note, unless you jumped around,
which is OK also!

--
Ruby Student

--
Ruby Student

Look at using glade to generate the interface, the code the callbacks

···

On 1/10/2010 12:21 PM, Ruby Student wrote:

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

I've used FoxGUIb which works quite well for drag and drop for several small projects. It is fairly easy to use and there is a tutorial on the site.
Tom Reilly

Ruby Student wrote:

···

Team,

I truly hate to bring this subject back to the forum, as it is like
killing a dead horse! But I can't help it, as my frustration keeps on
growing!

I am a Ruby, kind of, newbie. I've been in and out of Ruby many times
for a few years now.
I am sure that I and other people (I think) could be using Ruby more
often if there were a "simple" GUI development environment. I put
simple in quote because I understand that it is a very subjective
word.
In the past I experimented with several GUI toolkits, which I know are
excellent GUI toolkit bindings for ruby, including: Qt, Gtk, Wx, Fox
and Tk. I also played or tried playing with Monkeybars with Netbeans
and JRuby; and Shoes. Against my free will I was willing to give it a
try to IronRuby and Ruby on Steel.

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

I actually thought that Monkeybars was the answer to my prayers, but I
guess I did not prayed loud enough or perhaps I need to offer
sacrifices to the GUI Toolkits gods. The point is that Monkeybars was
so involved that I went through the tutorial once or twice and then
gave up.
The WX people are nice enough to offer help. But I don't want to
impose on anyone. To compound my problem I find most tutorials
outdated and many times not explicit enough for beginners.

I also, naively, thought that since IronRuby was from MS, perhaps they
would have a nice drag&drop GUI design IDE.

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

Thank you for reaching this part of my note, unless you jumped around,
which is OK also!

NetBeans. Monkeybars is the glue to use NetBeans' GUI builder in JRuby.

···

On 10.01.2010 18:21, Ruby Student wrote:

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

--
Phillip Gawlowski

Ruby Student wrote:

I actually thought that Monkeybars was the answer to my prayers, but I
guess I did not prayed loud enough or perhaps I need to offer
sacrifices to the GUI Toolkits gods. The point is that Monkeybars was
so involved that I went through the tutorial once or twice and then
gave up.

I am really curious as to why using Monkeybars was such trouble.

Contact me off-list if you like.

I used to contribute to Monkeybars, and I now use my own fork of it (Jimpanzee) and in both cases one goal was to make things stupid simple.

···

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

Ruby Student schrieb:

Team,

I truly hate to bring this subject back to the forum, as it is like
killing a dead horse! But I can't help it, as my frustration keeps on
growing!

I am a Ruby, kind of, newbie. I've been in and out of Ruby many times
for a few years now.
I am sure that I and other people (I think) could be using Ruby more
often if there were a "simple" GUI development environment. I put
simple in quote because I understand that it is a very subjective
word.
In the past I experimented with several GUI toolkits, which I know are
excellent GUI toolkit bindings for ruby, including: Qt, Gtk, Wx, Fox
and Tk. I also played or tried playing with Monkeybars with Netbeans
and JRuby; and Shoes. Against my free will I was willing to give it a
try to IronRuby and Ruby on Steel.

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

I actually thought that Monkeybars was the answer to my prayers, but I
guess I did not prayed loud enough or perhaps I need to offer
sacrifices to the GUI Toolkits gods. The point is that Monkeybars was
so involved that I went through the tutorial once or twice and then
gave up.
The WX people are nice enough to offer help. But I don't want to
impose on anyone. To compound my problem I find most tutorials
outdated and many times not explicit enough for beginners.

I also, naively, thought that since IronRuby was from MS, perhaps they
would have a nice drag&drop GUI design IDE.

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

Thank you for reaching this part of my note, unless you jumped around,
which is OK also!

Take a look at my tool:

Jeszra generates tcl/tk templates and exports wrapper classes for
Ruby, python and lisp (other languages will follow).

This way all of Tk's –and 3rd ventor packages– are available in Ruby, too.
My goal for this year is to bypass tcl/tk completely and to generate SVG 1.2
applications instead.

It is however not an IDE and won't ever, ever become an IDE!

-roger

Love replying to myself......

···

On Sun, Jan 10, 2010 at 10:15 AM, John W Higgins <wishdev@gmail.com> wrote:

Good Morning,

On Sun, Jan 10, 2010 at 9:21 AM, Ruby Student <ruby.student@gmail.com>wrote:

As you can read I have been looking for a "simple" GUI environment
where I don't have to "draw" the widgets. I would like to get a GUI
programming environment where I can drag&drop widgets (diaglog box,
drop-down list, Etc., Etc.) on a pane and then just worry about the
programming part to handle or react to the events generated by the
widgets! I hate to say, but something like VB.

Have a look at XRCise (
http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise\) - should be pretty
close to what you want (if you want to use wx).

John

I forgot that the tutorial uses DialogBlocks which is commerical - you could
use wxGlade as opposed to DialogBlocks to create the xrc file.

John

WideStudio is.

Cheers,
Mohit.
11/1/2010 | 2:52 AM.

···

On 11/1/2010 2:40 AM, Ruby Student wrote:

Thank you to everyone that already posted and answer.

If at all possible, I would like a cross-platform package!

Phillip Gawlowski wrote:

If anyone knows an IDE where I can use drag&drop to create GUI appls
in Ruby/Jruby/IronRuby/AnyRuby, please let me know. I am willing to
purchase a commercial package, if available.

NetBeans. Monkeybars is the glue to use NetBeans' GUI builder in JRuby.

But know that you do not *have* to use Netbeans to make a UI for Monkeybars. Monkeybars works by hooking into compiled Swing UI code. But you can also use inline Swing code to get the same thing. That's the point of my Neurogami::SwingSet project, to make it easier to write Swing stuff in a text editor. (It's true of Jimpanazee, but I don't recall if that code made it into Monkeybars.)

But if there's another tool preferred for creating the Swing UI layer, that should work fine too, just tell the app what file is to be used.

For myself, I use SwingSet for simple UI items (an "About" screen, or simple user input) and the Netbeans GUI editor for more sophisticated layouts.

Hard to beat Netbeans for that.

···

On 10.01.2010 18:21, Ruby Student wrote:

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

Or use QTDesigner.

Point is, this isn't a Ruby problem, this is a GUI library problem. You'd have
the same problem in C++, C#, Python, Perl, C, OCaml, Lisp, Haskell, Erlang,
EcmaScript (JavaScript), Java, Scheme, Clojure....

The problem is mostly that you don't know what you're looking for. You're
looking for something called a "GUI Designer". Google it, and you'll find
dozens.

Once you can design a GUI for a library, in its native language, you can
probably work with it in Ruby. That process is complex enough that you should
probably follow a tutorial, rather than figure it out yourself, unless you
already know C/C++.

So, here's a tutorial:

http://www.arachnoid.com/ruby/RubyGUIProject/

···

On Sunday 10 January 2010 12:44:34 pm Reid Thompson wrote:

On 1/10/2010 12:21 PM, Ruby Student wrote:
> As you can read I have been looking for a "simple" GUI environment
> where I don't have to "draw" the widgets. I would like to get a GUI
> programming environment where I can drag&drop widgets (diaglog box,
> drop-down list, Etc., Etc.) on a pane and then just worry about the
> programming part to handle or react to the events generated by the
> widgets! I hate to say, but something like VB.

Look at using glade to generate the interface, the code the callbacks

James, I don't remember if the problems was with Netbeans or something
else. But I followed a video to the period and I never got it right!
I am sure that if I tried long enough, I would probably succeed. Then
again with a job and a family it is difficult to dedicate infinite
time to these tools. So I gave up and continued writing ASCII mode
scripts!
To me, Monkeybars looked perfect because it makes available the power
of swing! But, here I am, still struggling!

···

On Sun, Jan 10, 2010 at 3:24 PM, James Britt <james.britt@gmail.com> wrote:

Ruby Student wrote:

I actually thought that Monkeybars was the answer to my prayers, but I
guess I did not prayed loud enough or perhaps I need to offer
sacrifices to the GUI Toolkits gods. The point is that Monkeybars was
so involved that I went through the tutorial once or twice and then
gave up.

I am really curious as to why using Monkeybars was such trouble.

Contact me off-list if you like.

I used to contribute to Monkeybars, and I now use my own fork of it
(Jimpanzee) and in both cases one goal was to make things stupid simple.

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

--
Ruby Student

Ruby Student wrote:

Thank you to everyone that already posted and answer.

If at all possible, I would like a cross-platform package!

Then Monkeybars + NetBeans interface builder is the way to go.

Best,

···

--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://www.ruby-forum.com/\.

I was struggling with the same problem too when I started my work on
RStreamTuner (http://github.com/bosko/rstreamtuner\). First I've tried
ruby Tk but lack of good documentation (and knowledge of Tcl)
prevented me to make something useful so I've decided to try WxWidgets
and wxruby. I must say that I'm really satisfied with it. Simple
applications can be made very quickly and documentation is quite good
- better say excellent for one open source project.

Although DialogBlocks are commercial tool their demo version can be
used for moderate complex GUI (I think they have limitation to 30
widgets. I didn't know about wxGlade and I will certainly try it.
Anyway wxruby is my choice for ruby GUI applications because to simple
way of using, very logical interface and their portability. My
application is working on Linux and Windows without any problem.
WxRuby guys even make binary gem for RubyInstaller (http://
www.rubyinstaller.org/) that I use on Windows. Only problem I've faced
is x64 bit version of their gem which didn't work on my Ubuntu 9.10,
but that was quite easy to overcome.

Regards,
Bosko Ivanisevic

···

On Jan 10, 7:17 pm, John W Higgins <wish...@gmail.com> wrote:

[Note: parts of this message were removed to make it a legal post.]

Love replying to myself......

On Sun, Jan 10, 2010 at 10:15 AM, John W Higgins <wish...@gmail.com> wrote:

> Good Morning,

> On Sun, Jan 10, 2010 at 9:21 AM, Ruby Student <ruby.stud...@gmail.com>wrote:

>> As you can read I have been looking for a "simple" GUI environment
>> where I don't have to "draw" the widgets. I would like to get a GUI
>> programming environment where I can drag&drop widgets (diaglog box,
>> drop-down list, Etc., Etc.) on a pane and then just worry about the
>> programming part to handle or react to the events generated by the
>> widgets! I hate to say, but something like VB.

> Have a look at XRCise (
>http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise\) - should be pretty
> close to what you want (if you want to use wx).

> John

I forgot that the tutorial uses DialogBlocks which is commerical - you could
use wxGlade as opposed to DialogBlocks to create the xrc file.

John

But know that you do not *have* to use Netbeans to make a UI for
Monkeybars.

If you want a half-way decent drag & drop UI layout.. thing, like NetBeans' SWING Builder (or whatever it's called), like the OP, then you pretty much have to use NetBeans. :wink:

For myself, I use SwingSet for simple UI items (an "About" screen, or
simple user input) and the Netbeans GUI editor for more sophisticated
layouts.

Hard to beat Netbeans for that.

Well, Visual Studio, maybe, but since VS plays in a way different league than Sun ever did, *and* IronRuby isn't finished yet to hook into .NET...

···

On 10.01.2010 21:30, James Britt wrote:

--
Phillip Gawlowski

Ruby Student wrote:

James, I don't remember if the problems was with Netbeans or something
else. But I followed a video to the period and I never got it right!

Ah, well, I'm pretty sure that, for all sorts of reasons, the videos are out of date. :frowning:

I am sure that if I tried long enough, I would probably succeed. Then
again with a job and a family it is difficult to dedicate infinite
time to these tools. So I gave up and continued writing ASCII mode
scripts!
To me, Monkeybars looked perfect because it makes available the power
of swing! But, here I am, still struggling!

As I say, if you want to ask me question off-list, please drop me a line.

···

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development