Rich Graphic Interface with Ruby

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

Diego B. 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.rubyforge.org/


James B.

“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

On Sun, Mar 23, 2008 at 10:19 PM, Diego B.
[email protected] 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%2FGtkGLExt
http://cairographics.org/rcairo/
http://raa.ruby-lang.org/project/opengl/
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=X11

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 K.

On 24 Mar 2008, at 04:53, Daniel Brumbaugh K. wrote:

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 :slight_smile:

Ellie

Eleanor McHugh
Games With Brains

raise ArgumentError unless @reality.responds_to? :reason

Diego B. 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” … :slight_smile: :slight_smile:

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.

On Mar 23, 11:19 pm, Diego B. [email protected]
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-forum.com/.

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

On Mon, Mar 24, 2008 at 12:33 PM, Diego B.
[email protected]
wrote:

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 :slight_smile:

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

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

M. Edward (Ed) Borasky wrote:

Diego B. 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” … :slight_smile: :slight_smile:

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_leopard.png
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 :slight_smile:

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 :slight_smile:

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

thx everyone :slight_smile:

On Mon, Mar 24, 2008 at 11:33 AM, Diego B.
[email protected] wrote:

Thanks
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 :slight_smile:

Michael G.

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 G.

i am! di3go.bernardes dot gmail dot com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs