On Sun, Sep 12, 2010 at 8:46 AM, Octavian Rasnita <orasn...@gmail.com> wrote: > > Can WxPerl be used with Moose?
Yes, and it's not too hard. There are a couple of gotchas, though. First, because Wx classes are not Moose classes, you should use the MooseX::NonMoose module to simplify inheritance. You can get by without it, but it saves a lot of effort. Second, Wx::App (and thus Wx::SimpleApp) are a bit odd. You can't provide your own constructor; the class makes a shadow copy of the App object behind the scenes; and you can't make the class immutable in MOP -- or else your OnInit will never get called! I have written a brief tutorial on using Moose with WxPerl. I haven't released it yet because it's incomplete, and I think it's a bit rough around the edges. You're welcome to read it, though, at http://cl.ly/197f818fd93974d07d60 (in PDF format). (By the way, I would appreciate any feedback!) I hope this helps. -- Eric J. Roode