Forum: wxRuby wxruby and wxwidget-2.9.5 latest

7039143c5e41c8abdb2ed53499897ee8?d=identicon&s=25 jerome jerome (un_autre_jerome)
on 2013-08-31 03:09
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 ?
85991f138ede6236f35eb98da22b7b01?d=identicon&s=25 Marvin Gülker (quintus)
on 2013-08-31 10:18
(Received via mailing list)
Attachment: signature.asc (489 Bytes)
Am Sat, 31 Aug 2013 03:09:22 +0200
schrieb jerome jerome <lists@ruby-forum.com>:

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

ASCII-Ribbon-Kampagne        ()   | ASCII Ribbon Campaign        ()
- Stoppt HTML-E-Mail         /\   | - Against HTML E-Mail        /\
- Stoppt proprietäre Anhänge      | - Against proprietary attachments
www.asciiribbon.org/index-de.html | www.asciiribbon.org
7039143c5e41c8abdb2ed53499897ee8?d=identicon&s=25 jerome jerome (un_autre_jerome)
on 2013-08-31 10:34
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.
06f6780c99d4a8dd71f2b474082ea9ce?d=identicon&s=25 Alex Fenton (Guest)
on 2013-08-31 23:11
(Received via mailing list)
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
7039143c5e41c8abdb2ed53499897ee8?d=identicon&s=25 jerome jerome (un_autre_jerome)
on 2013-09-01 00:51
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.
7039143c5e41c8abdb2ed53499897ee8?d=identicon&s=25 jerome jerome (un_autre_jerome)
on 2013-09-02 03:56
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.
7039143c5e41c8abdb2ed53499897ee8?d=identicon&s=25 jerome jerome (un_autre_jerome)
on 2013-09-02 09:03
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.
This topic is locked and can not be replied to.