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

···

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

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

···

On Aug 31, 2011, at 11:36, Samuel Mensah <sasogeek@yahoo.com> 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/.

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.

It does not fall into your hands magically!

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

···

--
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 http://shoesrb.com/manual/Hello.html

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

···

On Wed, Aug 31, 2011 at 10:36 AM, Samuel Mensah <sasogeek@yahoo.com> 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/.

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.

···

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

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

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

···

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

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: https://github.com/ashbb/green_shoes) and
there is still serious development going on in the shoes community!

so :stuck_out_tongue:
hex

···

On Wed, Aug 31, 2011 at 4:23 PM, Alexey Petrushin <axyd80@gmail.com> wrote:

Shoes seems to be abandoned and buggy.

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

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.

···

On Wed, Aug 31, 2011 at 3:23 PM, Alexey Petrushin <axyd80@gmail.com> wrote:

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

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

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

Alexey Petrushin 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?

···

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

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

···

On 31 August 2011 22:23, Alexey Petrushin <axyd80@gmail.com> wrote:

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

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.

···

On Thursday, September 1, 2011 at 1:54 AM, 7stud -- wrote:

Alexey Petrushin 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?

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

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 (TM).
-r

···

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

Steve Klabnik 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 be 'spray painted' by vandals.

···

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

statistics in action! lol :slight_smile:
hex

···

On Thu, Sep 1, 2011 at 12:33 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:

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

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

Steve Klabnik 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] 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] https://bugs.launchpad.net/debian/+source/wxwidgets2.8/+bug/632984

···

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

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:

···

Am 02.09.2011 02:07, schrieb Steve Klabnik:

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.

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

√ 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

Ah, my mistake.