[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Rich Graphic Interface with Ruby

Diego Bernardes

3/24/2008 3:20:00 AM

What is the best way to get a really nice gui in ruby?

Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
Opengl but i think its alot complicated, have any other good one that i
dont know? cairo?..?


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

10 Answers

James Britt

3/24/2008 3:30:00 AM

0

Diego Bernardes wrote:
> What is the best way to get a really nice gui in ruby?
>
> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
> Opengl but i think its alot complicated, have any other good one that i
> dont know? cairo?..?
>

Use Swing with JRuby + Monkeybars

Magically easy, cross-platform, pure-Ruby goodness.


http://monkeybars.ruby...



--
James Britt

"In physics the truth is rarely perfectly clear, and that is certainly
universally the case in human affairs. Hence, what is not surrounded by
uncertainty cannot be the truth."
- R. Feynman

Daniel Brumbaugh Keeney

3/24/2008 4:54:00 AM

0

On Sun, Mar 23, 2008 at 10:19 PM, Diego Bernardes
<di3go.bernardes@gmail.com> wrote:
> What is the best way to get a really nice gui in ruby?
>
> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
> Opengl but i think its alot complicated, have any other good one that i
> dont know? cairo?..?

If you're looking for something lower-level, perhaps

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby%...
http://cairographics.o...
http://raa.ruby-lang.org/proje...
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category...

IIRC, you can also access the native windows API with the win32
libraries. However, I don't know of anyone using these libraries. Most
people prefer abstract GUI toolkits, such as

ruby-gnome2
WxRuby
QtRuby
FXRuby
Tk

WxRuby has an "Advanced User Interface" set of widgets if you're just
looking for something looking a little "shinier".

Daniel Brumbaugh Keeney

Eleanor McHugh

3/24/2008 12:01:00 PM

0

On 24 Mar 2008, at 04:53, Daniel Brumbaugh Keeney wrote:
> On Sun, Mar 23, 2008 at 10:19 PM, Diego Bernardes
> <di3go.bernardes@gmail.com> wrote:
>> What is the best way to get a really nice gui in ruby?
>>
>> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
>> Opengl but i think its alot complicated, have any other good one
>> that i
>> dont know? cairo?..?
>
> If you're looking for something lower-level, perhaps
>
> http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby%...
> http://cairographics.o...
> http://raa.ruby-lang.org/proje...
> http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category...
>
> IIRC, you can also access the native windows API with the win32
> libraries. However, I don't know of anyone using these libraries. Most
> people prefer abstract GUI toolkits, such as
>
> ruby-gnome2
> WxRuby
> QtRuby
> FXRuby
> Tk
>
> WxRuby has an "Advanced User Interface" set of widgets if you're just
> looking for something looking a little "shinier".

And of course don't forget Shoes :)

http://code.whytheluckystiff....


Ellie

Eleanor McHugh
Games With Brains
----
raise ArgumentError unless @reality.responds_to? :reason



paron

3/24/2008 12:32:00 PM

0

On Mar 23, 11:19 pm, Diego Bernardes <di3go.bernar...@gmail.com>
wrote:
> What is the best way to get a really nice gui in ruby?
>
> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
> Opengl but i think its alot complicated, have any other good one that i
> dont know? cairo?..?
>
> Thanks
> --
> Posted viahttp://www.ruby-....

If you search 'ruby xul' you'll find a couple of projects using
RubyOnRails for the backend and xul for the UI. Xul has a ton of
widgets, including canvas and SVG, so you can do a lot with it. (It is
the engine for Mozilla products like Firefox.)You could use it on any
OS that runs Firefox, presumably.

It means using Javascript for the UI internals, but you don't have to
do browser sniffing and all the workarounds for Internet Explorer, so
it is not bad at all. Besides, most of the real processing would
happen on the server.

Ron

M. Edward (Ed) Borasky

3/24/2008 2:01:00 PM

0

Diego Bernardes wrote:
> What is the best way to get a really nice gui in ruby?
>
> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
> Opengl but i think its alot complicated, have any other good one that i
> dont know? cairo?..?
>
>
> Thanks

Well ... define "really nice GUI" ... :) :)

Seriously, most of the toolkits will do the common things and require
similar levels of coding effort. But since you mention OpenGL, I'm
assuming you want something involving 3D and motion.


Diego Bernardes

3/24/2008 3:33:00 PM

0

M. Edward (Ed) Borasky wrote:
> Diego Bernardes wrote:
>> What is the best way to get a really nice gui in ruby?
>>
>> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
>> Opengl but i think its alot complicated, have any other good one that i
>> dont know? cairo?..?
>>
>>
>> Thanks
>
> Well ... define "really nice GUI" ... :) :)
>
> Seriously, most of the toolkits will do the common things and require
> similar levels of coding effort. But since you mention OpenGL, I'm
> assuming you want something involving 3D and motion.

Things like this:
http://screenfashion.org/the_wiinstrument_on_l...
Nice colors, animations, blur...
This application is build on top of Gosu, im making a game with gosu too
so i know a little of it, gonna give it a try

Im tired of the same look app all the time, year after year...

I think the only way its opengl or air(flash/javascript), im gonna use
flash because its more easy XD if it dont do what i want to do i switch
to opengl >.< to use flash with ruby its with the AMF protocol right?
the rubyamf? anyone already used it?

Among the normal toolkits (gtk,qt,wx,...) i really like Shoes, have some
nice features from Processing and NodeBox and have a nice coding, i
liked alot :)
--
Posted via http://www.ruby-....

Vitor Peres

3/24/2008 4:19:00 PM

0

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

On Mon, Mar 24, 2008 at 12:33 PM, Diego Bernardes <di3go.bernardes@gmail.com>
wrote:

> Things like this:
> http://screenfashion.org/the_wiinstrument_on_l...
> Nice colors, animations, blur...
> This application is build on top of Gosu, im making a game with gosu too
> so i know a little of it, gonna give it a try
>
> Im tired of the same look app all the time, year after year...
>
> I think the only way its opengl or air(flash/javascript), im gonna use
> flash because its more easy XD if it dont do what i want to do i switch
> to opengl >.< to use flash with ruby its with the AMF protocol right?
> the rubyamf? anyone already used it?
>
> Among the normal toolkits (gtk,qt,wx,...) i really like Shoes, have some
> nice features from Processing and NodeBox and have a nice coding, i
> liked alot :)
> --
> Posted via http://www.ruby-....
>

That does look cool, indeed. Maybe you should try Clutter (
http://www.clutter-p...). It's still maturing, but you can do a lot
of interesting stuff, and there were ruby bindings for 0.4.

--
Vitor Peres (dodecaphonic)
------------------------------------
http://twitter.com/do...
http://dodecaphonic.bl...

Diego Bernardes

3/24/2008 6:17:00 PM

0

Clutter is nice, i didnt made anything on it, i dont know if they will
keep doing the ruby binding, clutter is in the 0.6 version and all the
bindings too only ruby its using 0.4 =(
but, well, tonight i gonna try to do something on it to see :)

for now i gonna try flash and Clutter, maybe opengl (harddddd ='( hehe)


thx everyone :)
--
Posted via http://www.ruby-....

Michael Guterl

3/24/2008 7:14:00 PM

0

On Mon, Mar 24, 2008 at 11:33 AM, Diego Bernardes
<di3go.bernardes@gmail.com> wrote:
>
> M. Edward (Ed) Borasky wrote:
> > Diego Bernardes wrote:
> >> What is the best way to get a really nice gui in ruby?
> >>
> >> Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
> >> Opengl but i think its alot complicated, have any other good one that i
> >> dont know? cairo?..?
> >>
> >>
> >> Thanks
> >
> > Well ... define "really nice GUI" ... :) :)
> >
> > Seriously, most of the toolkits will do the common things and require
> > similar levels of coding effort. But since you mention OpenGL, I'm
> > assuming you want something involving 3D and motion.
>
> Things like this:
> http://screenfashion.org/the_wiinstrument_on_l...
> Nice colors, animations, blur...
> This application is build on top of Gosu, im making a game with gosu too
> so i know a little of it, gonna give it a try
>
> Im tired of the same look app all the time, year after year...
>
> I think the only way its opengl or air(flash/javascript), im gonna use
> flash because its more easy XD if it dont do what i want to do i switch
> to opengl >.< to use flash with ruby its with the AMF protocol right?
> the rubyamf? anyone already used it?

I have used RubyAMF before but only when integrating with Rails. It
takes a little bit of playing around to get associations working
properly, but overall it works well.
If you're going to use Flex, I'd recommend using the Cairngorm
framework to structure your application.

I built some rake tasks which inspects your rails app and generates a
lot of the actionscript boilerplate associated with tying Rails and
Cairngorm together... It is almost in a releasable state, let me know
if you're interested.

>
> Among the normal toolkits (gtk,qt,wx,...) i really like Shoes, have some
> nice features from Processing and NodeBox and have a nice coding, i
> liked alot :)
>

Michael Guterl

Diego Bernardes

3/24/2008 8:51:00 PM

0

> I built some rake tasks which inspects your rails app and generates a
> lot of the actionscript boilerplate associated with tying Rails and
> Cairngorm together... It is almost in a releasable state, let me know
> if you're interested.
>
>
> Michael Guterl

i am! di3go.bernardes dot gmail dot com

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