![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2006
Posts: 19
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#3 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 655
Rep Power: 4
![]() |
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.mainbut 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! |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jan 2006
Posts: 19
Rep Power: 0
![]() |
Yeah, im going to learn Python now because I dont know how to use Rubyscript2exe but I do know how to use py2exe.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ruby guides/References list | Jessehk | Ruby | 2 | Mar 22nd, 2006 12:31 AM |
| Python v.s. Ruby | Jessehk | Coder's Corner Lounge | 11 | Mar 16th, 2006 12:49 PM |
| Good C++ Books | MrMan9879 | C++ | 3 | Oct 19th, 2005 1:13 PM |
| changing permissions in windows XP using ruby!! | kraf001 | Other Programming Languages | 0 | Sep 27th, 2005 2:58 AM |