# GUI programming

**URL:** <https://www.ruby-forum.com/t/gui-programming/211281>\
**Category:** Ruby\
**Created:** [August 31, 2011, 5:36pm UTC](https://www.ruby-forum.com/t/gui-programming/211281 "2011-08-31T17:36:00Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [August 31, 2011, 5:36pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/1 "2011-08-31T17:36:00Z")

</div>

Is ruby GUI programming something that will come along as I study ruby  
or its something separate all together that I have to search for and  
learn. I’m asking 'cos every program I code runs in the shell window.

Additional info: I’m a beginner

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [August 31, 2011, 5:44pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/2 "2011-08-31T17:44:00Z")

</div>

There are a number of ruby GUI toolkits. Check out shoes first because  
it’s just fun!

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [August 31, 2011, 5:57pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/3 "2011-08-31T17:57:33Z")

</div>

> Is ruby GUI programming something that will come along as I study ruby

It will not “come along” because YOU must decide on the question first:

- DO I want to use ruby in a GUI or not.

And only if you answer YES to this question will you be able to use  
ruby-GUI solutions.

It does not fall into your hands magically without your doing man!

You must read documentation too.

I myself use ruby-gtk. It is fairly good but we could need more users.

So if you want to use ruby in a GUI setting, this is ENTIRELY UP TO  
YOU!!!

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [August 31, 2011, 7:12pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/4 "2011-08-31T19:12:18Z")

</div>

On Wed, Aug 31, 2011 at 10:36 AM, Samuel M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Is ruby GUI programming something that will come along as I study ruby  
> or its something separate all together that I have to search for and  
> learn. I’m asking 'cos every program I code runs in the shell window.
> 
> Additional info: I’m a beginner
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

You’ll have to explicitly look into GUI frameworks.

I’ll recommend Shoes [http://shoesrb.com/](http://shoesrb.com/)

Be sure to go all the way through the manual, I found that almost all my  
questions were answered there [The Shoes Manual // Hello!](http://shoesrb.com/manual/Hello.html)

And of course, you’re still writing Ruby, so don’t neglect your Ruby  
learning 🙂

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [August 31, 2011, 7:45pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/5 "2011-08-31T19:45:10Z")

</div>

Thanks a lot 🙂 I’m going to ‘switch’ from shell to gui asap.  
Personally, shell is kinda boring so I’ll see how this works out.

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [August 31, 2011, 10:35pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/6 "2011-08-31T22:35:27Z")

</div>

On Wed, Aug 31, 2011 at 4:23 PM, Alexey P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Shoes seems to be abandoned and buggy.

shoes is not “abandoned and buggy” it has it’s bugs, yes, but it is  
hardly  
abandoned! i’ve talked to ashbb & steve kablank a few times (and even  
contributed a bit to green shoes: [GitHub - ashbb/green\_shoes: Green Shoes is one of the colorful Shoes written in pure Ruby. · GitHub](https://github.com/ashbb/green_shoes))  
and  
there is still serious development going on in the shoes community!

so 😛  
hex

–  
my blog is cooler than yours: [serialhex.github.com](http://serialhex.github.com)

The wise man said: “Never argue with an idiot. They bring you down to  
their  
level and beat you with experience.”

> > Other than the fact Linux has a cool name, could someone explain why I  
> > should use Linux over BSD?
> 
> No. That’s it. The cool name, that is. We worked very hard on  
> creating a name that would appeal to the majority of people, and it  
> certainly paid off: thousands of people are using linux just to be able  
> to say “OS/2? Hah. I’ve got Linux. What a cool name”. 386BSD made the  
> mistake of putting a lot of numbers and weird abbreviations into the  
> name, and is scaring away a lot of people just because it sounds too  
> technical.  
> – Linus Torvalds’ follow-up to a question about Linux

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 2:44am UTC](https://www.ruby-forum.com/t/gui-programming/211281/7 "2011-09-01T02:44:45Z")

</div>

On Wed, Aug 31, 2011 at 3:23 PM, Alexey P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

I got a lot of help from the IRC channel, and Steve mentioned just  
recently  
that he’s still developing it (  
[http://blog.rubybestpractices.com/posts/gregory/050-issues-18-testing-dogma.html#comment-268721639](http://blog.rubybestpractices.com/posts/gregory/050-issues-18-testing-dogma.html#comment-268721639)).  
Shoes is definitely not abandoned.

Biggest complaint I had was difficulty getting feedback (when I used  
Shoes,  
it would swallow errors, as opposed to Limelight, which would report  
them on  
stdout) IDK if its still set up that way, or if one of the other colours  
of  
shoes doesn’t do that. Second biggest is that IDK how you’d test most of  
that stuff.

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [August 31, 2011, 10:23pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/8 "2011-08-31T22:23:39Z")

</div>

I believe right now it’s better to stay with console, there’s no  
full-featured cross-platform Ruby  
GUI.

Shoes seems to be abandoned and buggy.  
Bowline looks nice but You has to write GUI in JavaScript, so it’s not  
“Ruby GUI”.

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 5:16am UTC](https://www.ruby-forum.com/t/gui-programming/211281/9 "2011-09-01T05:16:17Z")

</div>

In fact, the past two weeks of Shoes development has been more busy than  
the  
past year; heck, I’m _speaking at rubyconf_ about Shoes!

It can be buggy in places. We’re working on it!

Oh, and josh- hit alt-/ or command-/ 😉

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 6:28pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/10 "2011-09-01T18:28:46Z")

</div>

To be fair, I never could get wxRuby working on my computer.

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 6:33pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/11 "2011-09-01T18:33:10Z")

</div>

Steve K. wrote in post #1019624:

> To be fair, I never could get wxRuby working on my computer.

Well, then in a two person survey, 50% of ruby programmers are able to  
install it. Unfortunately, it looks like the wxRuby project may have  
been abandoned. There have been no updates since 2009, and the wxRuby  
wiki like website has been vandalized. Alex F.? Are  
you still out there?

I just looked in the wxRuby forum, and there are some recent posts from  
Alex F..

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 6:42pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/12 "2011-09-01T18:42:20Z")

</div>

On Thu, Sep 1, 2011 at 12:33 PM, 7stud – [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Well, then in a two person survey, 50% of ruby programmers are able to  
> install it.

statistics in action! lol 🙂  
hex

–  
my blog is cooler than yours: [serialhex.github.com](http://serialhex.github.com)

The wise man said: “Never argue with an idiot. They bring you down to  
their  
level and beat you with experience.”

> > Other than the fact Linux has a cool name, could someone explain why I  
> > should use Linux over BSD?
> 
> No. That’s it. The cool name, that is. We worked very hard on  
> creating a name that would appeal to the majority of people, and it  
> certainly paid off: thousands of people are using linux just to be able  
> to say “OS/2? Hah. I’ve got Linux. What a cool name”. 386BSD made the  
> mistake of putting a lot of numbers and weird abbreviations into the  
> name, and is scaring away a lot of people just because it sounds too  
> technical.  
> – Linus Torvalds’ follow-up to a question about Linux

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 7:54am UTC](https://www.ruby-forum.com/t/gui-programming/211281/13 "2011-09-01T07:54:02Z")

</div>

Alexey P. wrote in post #1019470:

> I believe right now it’s better to stay with console, there’s no  
> full-featured cross-platform Ruby  
> GUI.

What is wxRuby, then?

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 1, 2011, 8:14pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/14 "2011-09-01T20:14:56Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Am 01.09.2011 18:33, schrieb 7stud --:

> Steve K. wrote in post #1019624:
> 
> > To be fair, I never could get wxRuby working on my computer.

Current pixman has a bug that crashes wxLua and thereby wxRuby and  
other popular environments such as GNUstep[1]. Until pixman has fixed  
the issue, wxRuby has problems running on current Linux distros[2]. On  
Debian/Ubuntu, there’s a second bug fixed in Ubuntu for the upcomming  
Oneiric–there was a library (libwx\_gtk2u\_media) missing[3].

> Unfortunately, it looks like the wxRuby project may have been  
> abandoned. There have been no updates since 2009

Last SVN commits date on this year’s 21st May. It may not be  
overwhelmingly active, but at least _some_ development is going on.

Vale,  
Marvin

[1] [Bug #756237 “wxRuby crashes with segmentation fault in pixman\_im...” : Bugs : pixman package : Debian](https://bugs.launchpad.net/debian/+source/pixman/+bug/756237)

[2] To be exact, pixman 0.22.2 introduced the bug, previous version  
0.20.0 works flawlessly.

[3] [Bug #632984 “libwx\_gtk2u\_media-2.8.so.0 missing from libwxgtk2.8...” : Bugs : wxwidgets2.8 package : Debian](https://bugs.launchpad.net/debian/+source/wxwidgets2.8/+bug/632984)  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.11 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQEcBAEBAgAGBQJOX8t4AAoJELh1XLHFkqha63EH/A3xDsEqQXDt23Js7OLQ1fVl  
lilQpjn4Sq+xnaQP0HO/dd/o98H2p/K5/JTur6MRcSLW96pcA8bEkoJm8DHzrYcS  
qCIl7gN/olKIaNFO9Cj5GzUcQvYa69Nfz8ej6yIvE16Nlg9ypYxZffggIBn7wYJ0  
jq9gISIZpok6XTHLJ6n7mBM9msjRMl5ndSEafz+NXmU/My8laOetDbXE+eioeVWS  
IQlw8lDMkrHWnoA2oRruqPB1UMcP6NEQvARun750/05o3AnsuMN2dPEOtELH60y/  
egfJ3rXiM6svMHnmiGJLPE679XhoHkqJL1hrws9tcrXcJU3uiDDcv2g50oodM+U=  
=QONd  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 2, 2011, 1:36am UTC](https://www.ruby-forum.com/t/gui-programming/211281/15 "2011-09-02T01:36:03Z")

</div>

> It seems every time I turn to GUI programming I am digging into a pile  
> of bugs.
> 
> It’s not that there are not bugs outside of GUI toolkits. It’s just  
> that any decent GUI toolkit is composed of many little bits that have  
> to act all in concert, and any application but “Hello World” is going  
> to use quite a few different bits of the toolkit. And if any of them  
> breaks you will definitely notice 😉

The only stable one I’ve found is jruby (swing or swt).  
Once you get past the cruft it actually works ™.  
-r

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 2, 2011, 12:21am UTC](https://www.ruby-forum.com/t/gui-programming/211281/16 "2011-09-02T00:21:56Z")

</div>

On 31 August 2011 22:23, Alexey P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I believe right now it’s better to stay with console, there’s no Ruby  
> GUI, only hacks.

It seems every time I turn to GUI programming I am digging into a pile  
of bugs.

It’s not that there are not bugs outside of GUI toolkits. It’s just  
that any decent GUI toolkit is composed of many little bits that have  
to act all in concert, and any application but “Hello World” is going  
to use quite a few different bits of the toolkit. And if any of them  
breaks you will definitely notice 😉

On the other hand, a terminal or ‘console’ application can demonstrate  
whatever you were trying to do with very little unrelated stuff  
needed.  
That’s why one should venture to GUI only when there is good reason.  
It’s way more boring then console. The amount of boilerplating to get  
a simple GUI application done is enormous compared to writing results  
to stdout whatever toolkit you choose.

Of course, learning how to do a GUI is a good reason but then you  
still need to find some problem that can be solved by a GUI  
application at all. Many GUI applications try in vain to solve  
problems that need a shell utility or equivalent to be solved  
decently.

Thanks

Michal

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 2, 2011, 2:07am UTC](https://www.ruby-forum.com/t/gui-programming/211281/17 "2011-09-02T02:07:33Z")

</div>

> Last SVN commits date on this year’s 21st May. It may not be  
> overwhelmingly active, but at least _some_ development is going on.

That’s wxwidgets, not wxruby.

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 2, 2011, 5:27pm UTC](https://www.ruby-forum.com/t/gui-programming/211281/18 "2011-09-02T17:27:05Z")

</div>

Ah, my mistake.

---

<div class="post-metadata">

**Author:** ![binginit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@binginit](https://www.ruby-forum.com/u/binginit)\
**Post date:** [September 2, 2011, 9:04am UTC](https://www.ruby-forum.com/t/gui-programming/211281/19 "2011-09-02T09:04:57Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Am 02.09.2011 02:07, schrieb Steve K.:

> > Last SVN commits date on this year’s 21st May. It may not be  
> > overwhelmingly active, but at least _some_ development is going  
> > on.
> 
> That’s wxwidgets, not wxruby.

No, it isn’t:

==============================================

## √ quintus@ikarus =\> ~/Desktop $ svn checkout [http://wxruby.rubyforge.org/svn/trunk](http://wxruby.rubyforge.org/svn/trunk) wxruby […masses of output…] Ausgecheckt, Revision 2134. √ quintus@ikarus =\> ~/Desktop $ cd wxruby √ quintus@ikarus =\> ~/Desktop/wxruby $ LANG=en\_US.utf8 svn log -l 2

* * *

r2131 | brokentoy | 2011-05-21 15:03:12 +0200 (Sat, 21 May 2011) | 2  
lines

Avoid unnecessary re-loading XML resources in XRCise generated code  
(BUG:28872); remove some obsolete code and fix commas in attr\_reader

- 

* * *

r2130 | brokentoy | 2011-05-21 13:43:26 +0200 (Sat, 21 May 2011) | 2  
lines

Fix wrong tab-indenting in source and generated code from XRCise

- 

* * *

==============================================  
Note I’m not a power-subversion user (I normally use git), but to me  
it looks as if the first log entry says revision 2131 has happened the  
21st May 2011, which is a saturday.

Vale,  
Marvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.11 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQEcBAEBAgAGBQJOYH+QAAoJELh1XLHFkqha7hQH/jojsXT0Z8wZztCSh7yrOS1A  
BiYrCRScKGeUIaZjfgACVl8gjubbQZhz+4dncNez+X/DX4k1EvzvhnETgWaRIeqz  
d8rQPbLvo5wJXk0au4KlNu/YsoNSLYN4Z0wd6bN5qq9h9CHqX+kwTmEOxiW+9id1  
qK+pzHQKBVto6thcwOh57wA9oK59iVrx/pzwhB1iwGmM3JcYhLHa4MQxwAiVdWKw  
a3EIDEbfsWa7htTb+nzge0kuCnjyxIYnYaiy1tgcVj/zFYNWC25Eq7HRnTRFJdUF  
DHUpnBpf6nx+/f8fMI+qzmdqf3yfiqzG+t4X0PIW/3/DaZOZ79QazU1jsJ0nCZ8=  
=7BfM  
-----END PGP SIGNATURE-----
