# Wxruby and wxwidget-2.9.5 latest

**URL:** <https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393>\
**Category:** wxRuby\
**Created:** [August 31, 2013, 3:09am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393 "2013-08-31T03:09:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [August 31, 2013, 3:09am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/1 "2013-08-31T03:09:22Z")

</div>

is there a way to have wxwidget-2.9 working with ruby ? seems that the  
latest wxwidget is better for use with mac osx…  
so, there is many widget who are not been implemented in the last  
version of wxruby… like wxFilePickerCtrl (and other).

Also, it seems like the wxruby project is dead since 2009. Is it right ?  
So, do you know if someone seriously have intention to follow the  
project or is it more serious to forget wxrbuy and wxwidget with ruby ?

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 31, 2013, 10:18am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/2 "2013-08-31T10:18:25Z")

</div>

Am Sat, 31 Aug 2013 03:09:22 +0200  
schrieb jerome jerome [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Also, it seems like the wxruby project is dead since 2009. Is it  
> right ? So, do you know if someone seriously have intention to follow  
> the project or is it more serious to forget wxrbuy and wxwidget with  
> ruby ?

AFAIK not with wxRuby. Have a look here: [GitHub - Hanmac/rwx: wxWidgets binding for ruby · GitHub](https://github.com/Hanmac/rwx)

This works with wxWidgets 2.9, but is incomplete and sadly not  
documented.

Vale,  
Marvin

–  
Blog: [http://pegasus-alpha.eu/blog](http://pegasus-alpha.eu/blog)

ASCII-Ribbon-Kampagne () | ASCII Ribbon Campaign ()

- Stoppt HTML-E-Mail /\ | - Against HTML E-Mail /\
- Stoppt proprietäre Anhänge | - Against proprietary attachments  
[The Ascii Ribbon Campaign official homepage - Deutsch](http://www.asciiribbon.org/index-de.html) | [www.asciiribbon.org](http://www.asciiribbon.org)

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 31, 2013, 10:34am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/3 "2013-08-31T10:34:37Z")

</div>

ok, thanks for this information Marvin.

So… do you have experiment it yourself ? and if so, does it really  
works good ? (i don’t want now to loose time for nothing more)  
or is it preferable to consider that it’s probably a lot of lake of time  
to try to install and use it without any problem ?

i add that with wxruby 2.0.1, who is the last wxruby versus (and use  
wxwidget 2.8), was considered as a “good” GUI and stable. Sure is not,  
because after many lines writing, i can see that (for exemple) a  
DatePickerCtrl.get\_value doesn’t work as attempted (and definitively not  
works and return a error about a ‘local’ variable who’s not exist… ).

so, i try to find a GUI who just works with ruby and can be implemented  
on all OS (sure, not shoes who is really to much limited), but i’m not  
sure now that this really exist.

if you know which can really seriously works… i would like to be in  
confidence about this kind of crucial information.

thanks.

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [September 1, 2013, 12:51am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/4 "2013-09-01T00:51:13Z")

</div>

Ok Alex, thanks for this answer.

So… could you tell me (if you remember) how works DatePicketCtrl. Not  
how to use it… this is ok (good and clear information on wxruby web  
site), but how it really works, because there is a bug i think. The call  
of “get\_value” method return a "undefined ‘local’ for Nil:nilClass  
(NoMethodError).

So, the sample code in the wxruby rep has the same problem when try to  
get back the date value…

and then, i have a look on the lib/wx rep and never see some  
datepickerctrl.rb file.

So… i would like to debug it, but i not understand how it works (how i  
call the DatePickerCtrl Class and where/how is it defined.

if you remember a little bit of this, i will be happy to have  
information about that.

thanks again for your works.

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 31, 2013, 11:11pm UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/5 "2013-08-31T23:11:47Z")

</div>

On 31/08/2013 02:09, jerome jerome wrote:

> is there a way to have wxwidget-2.9 working with ruby ? seems that the  
> latest wxwidget is better for use with mac osx…  
> so, there is many widget who are not been implemented in the last  
> version of wxruby… like wxFilePickerCtrl (and other).

There’s no reason in principle that wxWidgets 2.9 couldn’t work with the  
way wxRuby does the binding using SWIG. wxWidgets 2.9 also has much  
cleaner header files so SWIG should be able to work with these … but  
there would be significant work to be done to adjust to all the changed  
interfaces in wxWidgets 2.9 / 3.0

> Also, it seems like the wxruby project is dead since 2009. Is it right ?  
> So, do you know if someone seriously have intention to follow the  
> project or is it more serious to forget wxrbuy and wxwidget with ruby ?

Well, most or all of the main developers who worked on wxRuby 2.0  
(including me) are doing other things now, so the project is dormant  
until someone offers active leadership.

You’ve been pointed to an alternative version - worth looking at,  
although personally I think that an interface to a library as large as  
Wx needs to use some tool that automatically reads header files, like  
SWIG.

alex

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [September 2, 2013, 9:03am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/6 "2013-09-02T09:03:32Z")

</div>

ok, i turn off the problem by insert in my code:

class NilClass  
def local(\*args)  
DateTime.civil(args[0], args[1], args[2], args[3], args[4],  
args[5],"+7")  
end  
end

like that, this correct the wxruby2 bug without touch the wxruby2 code.

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [September 2, 2013, 3:56am UTC](https://www.ruby-forum.com/t/wxruby-and-wxwidget-2-9-5-latest/236393/7 "2013-09-02T03:56:38Z")

</div>

ok, i just arrived to change the error message and understand that there  
is something not works good somewhere:

i create a new method “local” in class Nil:Class and saw that 6  
arguments has to be caught…  
they are year, month, day, etc…  
when i try to return a DateTime.civil(“all args”) i have an other  
unexpected error (LocalJumpError).  
i search about this, but nothing.  
I search also how to view where come from and hat to give back, but no  
way for this.

I try also to look inside the code… and then, a wxruby2.bundle file  
exist where i not arrived to unpack. After download the source code (so,  
i see that the wxruby versus i have is 2.0.0 and not 2.0.1 because of  
the obligation with gem and my osx-10.6.8 i386 arch and ruby-1.9.3… so  
no correct gem with “last old versus”)… i look into the source and see  
some swig C++ codes.  
Inside one of them (named “datetime.i”) i think that i find something  
calling “local” method indirectly… on line 40. I not really understand  
what’s happen… i just see that in this file, it try to make a  
convertion around DteTime from ruby and WxDateTime from WxWidget and  
make a return.

also, when i run ruby -d mode (with all ruby codes… also just “hello”  
codes), i have some error calling about incapacity of defined local OS.  
So… maybe also there is a link between this warning error and the  
call “local” who seems to return a empty things and after… an error in  
Nil:Class for “local” method (i think a method call for try to have the  
LOCAL time/date).

so… i search for resolve the problem with -debug mode of ruby. I find  
lot of people have same problem, but no real answer can be used with my  
gems (maybe some bad or missing dependencies).

2 ways:  
1 turn over the problem with the other way to return something via a  
invented “local” method on Nil:Class (what can i return and how to do  
without localjumperror ?)  
2 really find where the problem is coming from and resolve definitively  
it.

is there someone who can help me ? My little competences are out of run  
due to lot of lake of informations.
