On 2016-12-19 07:56-0000 p.d.rosenb...@gmail.com wrote: > Hi Alan, Pedro > Yes Alan, that is what I intended. Sorry, that doesn't compile. I was on my > way to bed when I sent the email and was doing it from memory. > > I will try to find a moment today to fix this. > > I'm not sure what your one line fix is. Feel free to elaborate. wxYield() > basically exits the flow, allows events to be processed then returns. In > theory the while shouldn't be needed I think. >
> Another option would be to catch idle events and check if we are ready then > call Plot(). Is that check for readiness the same as waiting for a particular wxwidgets event that we launched to complete? If so, then I think we are on exactly the same page, but it doesn't matter if your idea differs from mine, because you are the expert here so please just implement whatever readiness check feels right to you. Note I was probably over-influenced by the (way too) rich wxwidgets documentation and web advice on waiting for wxwidgets events, if you prefer other methods of checking for readiness. Also, I don't care if that check for readiness occurs outside the call to Plot() or as the first executable line of it (before pls is assigned a value). But just for the record, my idea was to do the latter. Anyhow, good luck with implementing this readiness check anyway you like, and I look forward to your commit to that effect which can go right on top of master tip (which should simplify your life). Then we can ask Pedro to drop his (now hopefully redundant) fix to test your solution really works for all the platforms he has access to. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel