[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Source code from complex user interfaces RUBY GTK

John Locke

5/12/2008 6:56:00 PM

Hi,

I've just started creating user interfaces with Ruby GTK and I would
like to know where can I find source code of complete interfaces,
examples and stuff, to learn to use all the features.

My program should have a window with all the normal options (File, Edit,
Help, etc); I would like to know where can I find source code from
programs made this way.

Thanks.
--
Posted via http://www.ruby-....

8 Answers

Axel Etzold

5/12/2008 7:33:00 PM

0


-------- Original-Nachricht --------
> Datum: Tue, 13 May 2008 03:56:18 +0900
> Von: John Locke <eloi.plans@campus.uab.es>
> An: ruby-talk@ruby-lang.org
> Betreff: Source code from complex user interfaces RUBY GTK

> Hi,
>
> I've just started creating user interfaces with Ruby GTK and I would
> like to know where can I find source code of complete interfaces,
> examples and stuff, to learn to use all the features.
>
> My program should have a window with all the normal options (File, Edit,
> Help, etc); I would like to know where can I find source code from
> programs made this way.
>
> Thanks.
> --
> Posted via http://www.ruby-....

Hello John,

I've particularly liked Hal Fulton's Ruby Way (there's
a second edition ) and the Ruby Cookbook. I think both are available
on Safari, eg.

http://safari.oreilly.com/0596523696/rubyckbk-CHP-...

Best regards,

Axel


--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_...

John Locke

5/12/2008 8:34:00 PM

0

But I do have to pay for that :S?
--
Posted via http://www.ruby-....

Phillip Gawlowski

5/12/2008 9:04:00 PM

0

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

John Locke wrote:
| But I do have to pay for that :S?

Well, yeah. Otherwise, The Ruby-GNOME2 project page has examples, too,
and a handful of tutorials.

You get what you pay for, though. :/

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

~ "The intrepid Spaceman Spiff is stranded on a distant planet!
~ ..our hero ruefully acknowledges that this happens fairly
~ frequently.." --- Calvin and Hobbes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgosLQACgkQbtAgaoJTgL8riQCeILYQ1JlIbVYGmdLQo+nuwfC/
bcMAoIVv3bHZhjF3n+Uh9MAaUL/rtjiA
=g5bH
-----END PGP SIGNATURE-----

Albert Schlef

5/12/2008 9:26:00 PM

0

I'm not sure a book is the best choice. You don't know what's in the
book. Maybe it's a nominal section about the library, nothing more.

You can use 'gem' to search for gems that depend on that GUI library.
Then you'll have plenty of examples.
--
Posted via http://www.ruby-....

Phillip Gawlowski

5/12/2008 10:10:00 PM

0

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

Albert Schlef wrote:

| You can use 'gem' to search for gems that depend on that GUI library.
| Then you'll have plenty of examples.

Except Ruby-GNOME2 isn't distributed as gem, and thus gems cannot depend
on it (an install would fail, since the dependency cannot be satisfied).

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

~ - You know you've been hacking too long when...
...a fly lands on the screen and you try to pick it up with the mouse and
put it in the onscreen trashcan!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgowEwACgkQbtAgaoJTgL+o4QCfcK77puEtwqyhgnB5QLpq0BpZ
mv0An1GYznl6lUQlpNAz/mg3C5+1Uim2
=3zal
-----END PGP SIGNATURE-----

Albert Schlef

5/13/2008 11:07:00 AM

0

Phillip Gawlowski wrote:
> Albert Schlef wrote:
>
> | You can use 'gem' to search for gems that depend on that GUI library.
> | Then you'll have plenty of examples.
>
> Except Ruby-GNOME2 isn't distributed as gem, and thus gems cannot depend
> on it (an install would fail, since the dependency cannot be satisfied).

On the one hand you say packages don't depend on some non-existing
GNOME2 gem.

On the other hand you say the install would fail because the
(non-existing!) dependency cannot be satisfied....

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

Marc Heiler

5/13/2008 11:56:00 AM

0

> My program should have a window with all the normal options (File, Edit,
> Help, etc); I would like to know where can I find source code from
> programs made this way.

The best way is to
- use krugle to search for specific ruby-gnome constructs
- look at the wiki (it has a LOT of knowledge buried)
- find some examples on the www

In a way you shouldnt worry too much, just make a little todo list what
you want to achieve. The smaller, the easier it can be solved. And you
can use the mailing list for the ruby-gtk folks too :)
--
Posted via http://www.ruby-....

Phillip Gawlowski

5/13/2008 2:45:00 PM

0

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

Albert Schlef wrote:

|
| On the one hand you say packages don't depend on some non-existing
| GNOME2 gem.

Yes.

| On the other hand you say the install would fail because the
| (non-existing!) dependency cannot be satisfied....

If a gem would depended on a dependency that cannot be satisfied, yes.


There's a reason I used the _subjunctive_ in that case: To answer the
question 'imagine if that were possible', as Raymond Chen would put it.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

YOUTH, n. The Period of Possibility, when Archimedes finds a fulcrum,
Cassandra has a following and seven cities compete for the honor of
endowing a living Homer.
~ -- Ambrose Bierce, "The Devil's Dictionary"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgpqVkACgkQbtAgaoJTgL9z5QCghuw2dKY8FXV9Elz4+eentM8c
ZrIAoI/pIfz4TGNHQ6u0nZqu5biBVHGN
=Huno
-----END PGP SIGNATURE-----