[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Is Ruby good at GUI develop?

Zhao Yi

9/6/2008 1:21:00 AM

I want to choose a script to develop a GUI program. I want to know more
about Ruby on GUI development, including its performance, function
capability, etc. Does anyone give me a brief introduction on this?
--
Posted via http://www.ruby-....

18 Answers

James Britt

9/6/2008 5:49:00 AM

0

Zhao Yi wrote:
> I want to choose a script to develop a GUI program. I want to know more
> about Ruby on GUI development, including its performance, function
> capability, etc. Does anyone give me a brief introduction on this?

There are assorted C-based options for GUI toolkits (Tk, Fox, wx, GTK,
Qt, etc.). These can be used with the C implementation of Ruby (the one
people think of when then think of Ruby).

You also have Java-based options; Swing in particular, which you can use
with JRuby.


You have to consider what's important: libraries, available widgets,
documentation, vendor support, layout managers, available WYSIWYG UI
editors, packaging and deployment, if end-users will need to install or
compile something, is it cross-platform, can you create your own
widgets, can you customize existing widgets, and so on.


I help develop a library called Monkeybars, which aims to make building
cross-platform desktop apps as simple and intuitive as the better Ruby
Web frameworks do for Web apps. Monkeybars uses JRuby + Swing, and I
encourage you to give it a whirl. It rocks. But I'm biased.


http://www.monk...

--
James Britt

www.happycamperstudios.com - Wicked Cool Coding
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff

Jason Cameron

9/10/2008 2:38:00 AM

0

James Britt wrote:
> Zhao Yi wrote:
>> I want to choose a script to develop a GUI program. I want to know more
>> about Ruby on GUI development, including its performance, function
>> capability, etc. Does anyone give me a brief introduction on this?
>
> There are assorted C-based options for GUI toolkits (Tk, Fox, wx, GTK,
> Qt, etc.). These can be used with the C implementation of Ruby (the one
> people think of when then think of Ruby).
>
> You also have Java-based options; Swing in particular, which you can use
> with JRuby.
>
>
> You have to consider what's important: libraries, available widgets,
> documentation, vendor support, layout managers, available WYSIWYG UI
> editors, packaging and deployment, if end-users will need to install or
> compile something, is it cross-platform, can you create your own
> widgets, can you customize existing widgets, and so on.
>
>
> I help develop a library called Monkeybars, which aims to make building
> cross-platform desktop apps as simple and intuitive as the better Ruby
> Web frameworks do for Web apps. Monkeybars uses JRuby + Swing, and I
> encourage you to give it a whirl. It rocks. But I'm biased.
>
>
> http://www.monk...
>
> --
> James Britt
>
> www.happycamperstudios.com - Wicked Cool Coding
> www.jamesbritt.com - Playing with Better Toys
> www.ruby-doc.org - Ruby Help & Documentation
> www.rubystuff.com - The Ruby Store for Ruby Stuff

I must say I'm not totally happy with _any_ of the current offerings
that I've tried for a Ruby GUI(fxRuby, wxRuby, Shoes, Sugar). I want a
form to open up and I want to be able to drop controls anywhere I want
on to it without having my eyes bleed.

I'd like to have a GUI builder (preferably on Linux, or will run the
built GUI on Linux) that's as easy as Microsoft Visu ... hey would you
guys stop throwing things ...please? ... anyway as easy as that.

That being said... Monkeybars seems to be the easiest way for me to
build a GUI in Ruby thus far. Hmmmm... I'll have to look at how
plug-ins are done in Netbeans... It may let me automate creating a
project with a form with Monkeybars.

I'm just a Linux newbie so I'll just get back to creating my rinky dinky
little apps in Ruby. :p If someone ever does get around to writing a
decent GUI builder for Ruby I predict the flood doors would open and
you'd see everyone and their dog trying Ruby out. Is that a good
things?... (shrug)

M
--
Posted via http://www.ruby-....

James Britt

9/10/2008 6:33:00 AM

0

Jason Cameron wrote:

> I must say I'm not totally happy with _any_ of the current offerings
> that I've tried for a Ruby GUI(fxRuby, wxRuby, Shoes, Sugar). I want a
> form to open up and I want to be able to drop controls anywhere I want
> on to it without having my eyes bleed.
>
> I'd like to have a GUI builder (preferably on Linux, or will run the
> built GUI on Linux) that's as easy as Microsoft Visu ... hey would you
> guys stop throwing things ...please? ... anyway as easy as that.


NetBeans. Built in GUI editor that Just Works. Cross-platform. Free.
(It's also a decent Ruby editor as well.)

>
> That being said... Monkeybars seems to be the easiest way for me to
> build a GUI in Ruby thus far. Hmmmm... I'll have to look at how
> plug-ins are done in Netbeans... It may let me automate creating a
> project with a form with Monkeybars.
>
> I'm just a Linux newbie so I'll just get back to creating my rinky dinky
> little apps in Ruby. :p If someone ever does get around to writing a
> decent GUI builder for Ruby I predict the flood doors would open and
> you'd see everyone and their dog trying Ruby out. Is that a good
> things?... (shrug)

Why must the GUI builder be written in Ruby? Monkeybars works with
the resulting .class file(s) containing the Swing stuff; how that gets
created is irrelevant. (Note: yes, you can use Monkeybars with
"builder"-style GUI-generating code as well, but that gets painful for
anything non-trivial, even with Monkeybars.)

Use the best tool for the job. Few people are insisting their text
editor or IDE be written in Ruby (not to say that would be a bad thing,
just misplaced focus).

There will be a Monkeybars talk at RubyConf 2008; I think it will knock
people's socks off. (Yes, I'm biased. But see for yourself.)


--
James Britt

www.happycamperstudios.com - Wicked Cool Coding
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff

Farrel Lifson

9/10/2008 6:45:00 AM

0

2008/9/10 Jason Cameron <cameronjc2000@yahoo.ca>:
> I'd like to have a GUI builder (preferably on Linux, or will run the
> built GUI on Linux) that's as easy as Microsoft Visu ... hey would you
> guys stop throwing things ...please? ... anyway as easy as that.

You can use Glade to do this with Ruby-GNOME2.

Farrel
--
Aimred - Ruby Development and Consulting
http://www....

Jan Pilz

9/10/2008 6:51:00 AM

0

I'd prefer Ruby and Qt4 (qt4-qtruby):
http://rubyforge.org/frs/?group_id=181&releas...

You can use Aptana IDE with Ruby for the Code, the Qt Assistant for
Documentation, and the Qt Designer to build GUIs with a graphical Tool.
Further i dont know any other way to build a GUI for Ruby with a Visual
Designer. Performance is quiet good, cause qt4-qtruby is just a
'Wrapper' for the libraries.

Farrel Lifson schrieb:
> 2008/9/10 Jason Cameron <cameronjc2000@yahoo.ca>:
>
>> I'd like to have a GUI builder (preferably on Linux, or will run the
>> built GUI on Linux) that's as easy as Microsoft Visu ... hey would you
>> guys stop throwing things ...please? ... anyway as easy as that.
>>
>
> You can use Glade to do this with Ruby-GNOME2.
>
> Farrel
>


--
Otto Software Partner GmbH

Jan Pilz (e-mail: Jan.Pilz@osp-dd.de)

Tel. 0351/49723202, Fax: 0351/49723119
01067 Dresden, Freiberger Straße 35 - AG Dresden, HRB 2475
Geschäftsführer: Burkhard Arrenberg, Heinz A. Bade, Jens Gruhl


Logan Barnett

9/10/2008 6:56:00 AM

0


On Sep 9, 2008, at 7:38 PM, Jason Cameron wrote:
>
> I'd like to have a GUI builder (preferably on Linux, or will run the
> built GUI on Linux) that's as easy as Microsoft Visu ... hey would you
> guys stop throwing things ...please? ... anyway as easy as that.
>
> That being said... Monkeybars seems to be the easiest way for me to
> build a GUI in Ruby thus far. Hmmmm... I'll have to look at how
> plug-ins are done in Netbeans... It may let me automate creating a
> project with a form with Monkeybars.
>
> I'm just a Linux newbie so I'll just get back to creating my rinky
> dinky
> little apps in Ruby. :p If someone ever does get around to writing a
> decent GUI builder for Ruby I predict the flood doors would open and
> you'd see everyone and their dog trying Ruby out. Is that a good
> things?... (shrug)

Jason,
There's a GUI builder for Ruby already (JRuby, specifically). It's
Netbeans.
Netbeans has a GUI Builder that supports drag-and-drop of buttons,
panels, labels, etc. If you do it right, you can use your interface on
any platform.

We have some screencasts which are a little dated, but it'll give you
the gist of using the editor along with how you wire it up with
Monkeybars:
(near the buttom of the page)
http://monkeybars.rubyforge.org...

We also can be found in #jruby and #monkeybars on freenode.


Huw Collingbourne

9/10/2008 8:58:00 AM

0

> I'd like to have a GUI builder (preferably on Linux, or will run the
> built GUI on Linux) that's as easy as Microsoft Visu ...

Don't fight it ;-)

Drag+drop design for Rails (cross-platform):
http://www.sapphir.../Visual-Ruby-On-Rails-Dra...
http://www.sapphir.../A-Brief-Guide-To-The-Vi...
http://www.sapphir.../A-Brief-Guide-To-The-Vi...,235
http://www.sapphir.../Visual-Rails-Workbench-...
http://www.sapphir.../Visual-Rails-Workbench-...

Drag+Drop design for any .NET program running Ruby:
http://www.sapphir.../Ruby-and-NET-Making-a-...

Drag+Drop Design for Iron Ruby (.NET):
http://www.sapphir.../Ruby-In-Steel-Fo...

best wishes
Huw Collingbourne

SapphireSteel Software
Ruby and Rails In Visual Studio
http://www.sapphir...
--
Posted via http://www.ruby-....

Zhao Yi

9/10/2008 11:38:00 AM

0

I do not quite care about the developing IDE for ruby GUI. What I want
to know is the performance of ruby GUI application. Compare with other
GUI application, like tcl, python etc., is ruby a good choice?
--
Posted via http://www.ruby-....

Jan Pilz

9/10/2008 11:49:00 AM

0

qt4-qtruby is kinda wrapper for Qt4, GUI is nearly same speed as with
C++, cause precompiled libraries are used.

Zhao Yi schrieb:
> I do not quite care about the developing IDE for ruby GUI. What I want
> to know is the performance of ruby GUI application. Compare with other
> GUI application, like tcl, python etc., is ruby a good choice?
>


--
Otto Software Partner GmbH

Jan Pilz (e-mail: Jan.Pilz@osp-dd.de)

Tel. 0351/49723202, Fax: 0351/49723119
01067 Dresden, Freiberger StraÃ?e 35 - AG Dresden, HRB 2475
Geschäftsführer: Burkhard Arrenberg, Heinz A. Bade, Jens Gruhl


César

9/10/2008 12:31:00 PM

0

You can use Glade. I made a software with Ruby + ActiveRecord + Glade
+ Sqlite in a week. This soft I done to learn how program with Ruby in
stand alone applications. Is a small example of what can somebody do
with this technologies..

In the bellow link can see explanation of the aplication and download
a screencast about the aplication.

http://cesardiaz.com.ar/personal_page/english/port...

Cheers

--
_______________________________________________
http://www.sindominio.net/ayuda/preguntas-intelig...
http://cronopios.net/Traducciones/trol...
Gnu/Linux count user #416024

Pagina personal : http://www.cesard...
Blog://cesarediaz.blogspot.com