On 17 June 2010 22:16, mattia.bar...@libero.it <mattia.bar...@libero.it> wrote: >>Da: adamkennedybac...@gmail.com >> >>At the moment I'm using the main window as the event conduit, rather >>than wxTheApp. >> >>I started initially using the app, but when I did this I found that >>events don't succeed immediately (on Windows) > > "On Windows" means that the code worked on Linux/Mac or that > you were developing on Windows and did not check the other platforms?
The later. My non-Windows boxes are just servers, with no gui platform on them. >>Instead, they seem to accumulate somewhere in the ether and then all >>arrive in one go when the thread exits. > > All of this while the main event loop was running? I believe so, but in retrospect I can't be completely confident. Certainly as soon as I replaced the use of the app with an empty window in the same test script, it seemed to work. >>Another problem I encountered with using Wx::wxTheApp was that it >>wasn't giving me the original (Perl) object, but a clone. Since I >>stash the entire main window into a has key on the main app, I was >>concerned about accidentally cloning half the universe. > > wxPerl does not deep-clone data, it creates a new reference > to the existing blessed hash (if it can find an existing one) or a new blessed > scalar reference (if it can't). I did make a working test case for this, it may not deep clone but it certainly shallow clones... >>I didn't have any equivalent problems when using the main window. >> >>I should note I'm seeing similar cloning problems with the bindings >>for Wx::Window::FindWindow (FindObject?) or something like that. > > Bug reports are (eventually) investigated :-) > >>So another shortcut I'd hoped to use had to be skipped in favour of >>using ->GetParent chains, which does return the original Perl objects. > > This does not make any sense... the typemap used for GetParent() is the > same used for FindWindow(). Do you have a test case? I'll try to get some of my test code formalised and into failing Padre tests... Adam K _______________________________________________ Padre-dev mailing list Padre-dev@perlide.org http://mail.perlide.org/mailman/listinfo/padre-dev