# Source code from complex user interfaces RUBY GTK

**URL:** <https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399>\
**Category:** Ruby\
**Created:** [May 12, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399 "2008-05-12T20:56:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 12, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/1 "2008-05-12T20:56:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 12, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/2 "2008-05-12T21:33:42Z")

</div>

Hello John,

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

> **[O'Reilly Media - Technology and Business Training](https://www.oreilly.com/)**
>
> Gain technology and business knowledge and hone your skills with learning resources created and curated by O'Reilly's experts: live online training, video, books, our platform has content from 200+ of the world's best publishers.

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 12, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/3 "2008-05-12T22:33:52Z")

</div>

But I do have to pay for that :S?

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 12, 2008, 11:04pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/4 "2008-05-12T23:04:19Z")

</div>

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

John L. 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 G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

~ “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.mozdev.org](http://enigmail.mozdev.org)

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

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 12, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/5 "2008-05-12T23:26:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 13, 2008, 12:10am UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/6 "2008-05-13T00:10:46Z")

</div>

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

Albert S. 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 G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

~ - 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.mozdev.org](http://enigmail.mozdev.org)

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

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 13, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/7 "2008-05-13T13:06:49Z")

</div>

Phillip G. wrote:

> Albert S. 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…

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 13, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/8 "2008-05-13T13:55:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![focdesoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@focdesoc](https://www.ruby-forum.com/u/focdesoc)\
**Post date:** [May 13, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/source-code-from-complex-user-interfaces-ruby-gtk/137399/9 "2008-05-13T16:45:33Z")

</div>

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

Albert S. 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 G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

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.mozdev.org](http://enigmail.mozdev.org)

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