GUI programming

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

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

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!!!

On Wed, Aug 31, 2011 at 10:36 AM, Samuel M. [email protected]
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/.

You’ll have to explicitly look into GUI frameworks.

I’ll recommend Shoes 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!

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

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

On Wed, Aug 31, 2011 at 4:23 PM, Alexey P. [email protected]
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.)
and
there is still serious development going on in the shoes community!

so :stuck_out_tongue:
hex


my blog is cooler than yours: 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

On Wed, Aug 31, 2011 at 3:23 PM, Alexey P. [email protected]
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).
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.

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

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-/ :wink:

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

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…

On Thu, Sep 1, 2011 at 12:33 PM, 7stud – [email protected]
wrote:

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

statistics in action! lol :slight_smile:
hex


my blog is cooler than yours: 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

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?

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

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

[3] 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/

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

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

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

On 31 August 2011 22:23, Alexey P. [email protected] 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 :wink:

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

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.

Ah, my mistake.

-----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 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/

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