From: John L. <jla...@gm...> - 2014-06-24 22:04:18
|
On Mon, Jun 23, 2014 at 10:57 PM, Paul K <pau...@ya...> wrote: > John, > > Thank you for the update. Curious, can you run a simple script that > checks if GetChildren() is available method for wxWindow? It's been > reported that for some reason GetChildren() is not available when > compiled with wxgtk3 (3.0.1) on Archlinux: > > wxLua: Unable to call an unknown method 'GetChildren' on a 'wxWindow' type. > stack traceback: > [C]: in function '__index' > ... > > I haven't had a chance to test it myself yet, but I can use it when > compiled on Windows and it was clearly present in previous versions as > well (2.9.x). > > This is because wxList for the STL build is nothing like the old wxList and the function signatures are quite different. Add to this wx2.8 compatibility and this may take some doing, but luckily the use of wxLists in wxLua should be minimal. I may just make a new function to return the wxWindow::GetChildren() as a Lua table and dispense with any attempt to get list iterators to work in Lua. Though this is an incompatible change, the use of wxNodes in Lua is awkward at best. I have to look at it further. Regards, John |