# wxRuby and wxGlade?

**URL:** <https://www.ruby-forum.com/t/wxruby-and-wxglade/103600>\
**Category:** Ruby\
**Created:** [May 8, 2007, 10:07am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600 "2007-05-08T10:07:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 8, 2007, 10:07am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/1 "2007-05-08T10:07:59Z")

</div>

Hello:

Finally I understood the concept of what wxWidgets is, I thought it was  
an IDE I didn’t understood the concept of libraries and that stuff, but  
now I have it clear… I think, je je je.

I’m using OSX 10.4.9(PPC), I already installed wxWidgets, wxRuby and  
wxPython, everything is working smothly.

NOW, I would like to able to create graphical interfaces in a more  
“visual way”(event driven) than what wxRuby allows. I downloaded  
wxPython so I can use wxGlade because I read somewhere that I still  
could use ruby scripts even in wxGlade, is that so? can anyone  
illustrate a little more about it? (please in simple language, until  
last week computers where a magical box for me, je je je)

Are there any tutorials somewhere to learn more about wxRuby and  
wxGlade?

---

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 9, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/2 "2007-05-09T20:06:10Z")

</div>

On May 8, 3:08 am, Guaton C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
[…]

> NOW, I would like to able to create graphical interfaces in a more  
> “visual way”(event driven) than what wxRuby allows. I downloaded  
> wxPython so I can use wxGlade because I read somewhere that I still  
> could use ruby scripts even in wxGlade, is that so? can anyone  
> illustrate a little more about it? (please in simple language, until  
> last week computers where a magical box for me, je je je)

wxGlade lets you build an interface graphically and then you use that  
visually-defined interface to generate the equivalent program  
generating the same interface.

So, one general usage is: launch wxGlade, create your application’s  
layout by installing widgets in the windows/frames/panels, generate  
the ruby/python/whatever code, call that code from within your main  
program (preferably in another file) which handles the logic of your  
application.

> Are there any tutorials somewhere to learn more about wxRuby and  
> wxGlade?

The examples given in the wx demo are certainly a very good source to  
read inspect and imitate.

Daniel.

---

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 10, 2007, 5:06am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/3 "2007-05-10T05:06:46Z")

</div>

Thanks, I’ll give it a try!!!

---

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 10, 2007, 5:23am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/4 "2007-05-10T05:23:21Z")

</div>

Hi all. I’m writing a Ruby program that requires a thesaurus to  
expand a given term to a set that includes all its synonyms… anyone  
know of a resource that I can have my program access?

Thanks!

---

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 10, 2007, 10:15am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/5 "2007-05-10T10:15:39Z")

</div>

On Tue, 8 May 2007 17:08:02 +0900, Guaton C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> NOW, I would like to able to create graphical interfaces in a more  
> “visual way”(event driven) than what wxRuby allows. I downloaded

XRCed (see [http://xrced.sourceforge.net/](http://xrced.sourceforge.net/)) allows you to edit XRC files  
and define GUIs. These files can then be loaded using wxRuby’s  
XMLResource class (see  
[http://wxruby.rubyforge.org/doc/xmlresource.html](http://wxruby.rubyforge.org/doc/xmlresource.html)).

I haven’t done it myself with wxRuby but I have used fairly  
extensively it in wxPython.

---

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 14, 2007, 9:09am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/6 "2007-05-14T09:09:14Z")

</div>

i have been trying to install Ruby-WordNet, to no avail … ☹

I am on a Mac, and I am pretty sure that bdb is already installed by  
default on Tiger. I downloaded WordNet 3.0, and fed its ‘dict’  
directory path to convertdb.rb, but I get an error:

Dan$ ruby convertdb.rb /usr/local/WordNet-3.0/dict  
/Users/Dan/Desktop/Ruby-WordNet-0.02/lib/wordnet/lexicon.rb:32:in  
`require': no such file to load -- bdb (LoadError) from /Users/Dan/Desktop/Ruby-WordNet-0.02/lib/wordnet/ lexicon.rb:32 from /Users/Dan/Desktop/Ruby-WordNet-0.02/lib/wordnet.rb: 82:in`require’  
from /Users/Dan/Desktop/Ruby-WordNet-0.02/lib/wordnet.rb:82  
from convertdb.rb:38:in `require’  
from convertdb.rb:38

Any advice would be appreciated (especially a suggestion for a easier/  
newer way to have my Ruby program retrieve word synonyms)

Best,  
DAN

---

<div class="post-metadata">

**Author:** ![gcarcass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Post date:** [May 10, 2007, 5:26am UTC](https://www.ruby-forum.com/t/wxruby-and-wxglade/103600/7 "2007-05-10T05:26:21Z")

</div>

On Thu, May 10, 2007 at 12:22:52PM +0900, blufur wrote:

> Hi all. I’m writing a Ruby program that requires a thesaurus to  
> expand a given term to a set that includes all its synonyms… anyone  
> know of a resource that I can have my program access?

> **[dev(E)iate](https://deveiate.org/)**
>
> The personal website of Michael Granger.

marcel
