Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 30th, 2006, 7:15 PM   #1
infinite05
Newbie
 
Join Date: Jan 2006
Posts: 19
Rep Power: 0 infinite05 is on a distinguished road
Ruby Good With Gui?

I was wondering if Ruby is good for creating programs which use Gui. Because im willing to learn this language but I would like to use Ruby to create programs which go to the internet and automaticly do things for you when you click a button.
infinite05 is offline   Reply With Quote
Old Jul 31st, 2006, 7:42 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Ruby works with several poopular cross-platform GUI toolkits, including wxWidgets, Qt and GTK. It lags a little behind Python, though (a language similar and often compared to Ruby). wxRuby is only at version 0.6.0, and QtRuby only supports Qt 3 (whilst PyQt now supports Qt 4).

GTK seems the most viable option for a Ruby GUI.
Arevos is offline   Reply With Quote
Old Jul 31st, 2006, 6:50 PM   #3
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 630
Rep Power: 4 Jessehk is on a distinguished road
There is also FxRuby which uses the Fox toolkit, but I haven't looked into it.
Ruby's use of gtk is pretty nice, e.g.

require 'gtk2'

Gtk.init

button = Gtk::Button.new("Hello, world!")
window = Gtk::Window.new

window.signal_connect("destroy") { Gtk.main_quit }
window.border_width = 10
window.add button
window.show_all

Gtk.main

but if you are writing a GUI application, I would still recommend Python over Ruby.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Jul 31st, 2006, 8:51 PM   #4
infinite05
Newbie
 
Join Date: Jan 2006
Posts: 19
Rep Power: 0 infinite05 is on a distinguished road
Yeah, im going to learn Python now because I dont know how to use Rubyscript2exe but I do know how to use py2exe.
infinite05 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby guides/References list Jessehk Ruby 2 Mar 21st, 2006 11:31 PM
Python v.s. Ruby Jessehk Coder's Corner Lounge 11 Mar 16th, 2006 11:49 AM
Good C++ Books MrMan9879 C++ 3 Oct 19th, 2005 12:13 PM
changing permissions in windows XP using ruby!! kraf001 Other Programming Languages 0 Sep 27th, 2005 1:58 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:31 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC