On Mon, Jul 2, 2012 at 8:15 AM, Anders Andersson <alloni...@gmail.com> wrote: > (I hope this is how you replay to a message, sorry haven't been using any > mailing lists lately)
I prefer replying inline with the previous comment so it reads better. > Yes, I have looked into the bindings and it seems to be that some other wx > classes are missing, such as wxVListBox, wxHtmlListBox, wxServer, wxClient, > wxDataViewCtrl + helper classes etc. Which I use all of them in my C++ app. wxVListBox and wxHtmlListBox are straightforward to wrap. wxServer, wxClient, and wxDataViewCtrl take a little more work since we have to derive from them to allow Lua implementations of the virtual functions. There is no reason wxLua doesn't have any of these other than the lack of time it takes to do it. > I have basically a wxWidgets C++ application and would like to embed a > script language to allow users to create GUI in some kind of sand-boxed > environment. Some of the application needs to be converted to wxLua. And it > is there where wxThreads, wxVListBox, wxDataViewCtrl etc, are used (no > bindings for them yet). The pros for wxLua is that the user writing the > script does not have to think about pointers, memory etc. So to allow the > user to use C++ code is just the opposite of what I'm trying to do. Asking scripting users to write wxThreads is a lot to ask of them, but maybe not depending on the level of experience you expect these users to have. > What do you think, Is it better to use wxPython instead? Although its more > feature complete but it uses more memory, slower, new language, and is more > difficult to embed. wxPython is certainly more complete and the python libraries you can add to it are impressive. wxLua as you mention is fully embeddable and you can run multiple wxLuaStates at once. It really depends on your needs. The bindings for wxLua are stable and protect from pointer problems, but no attempt has been made (nor will it probably ever be made) to do additional value and range checking on all parameters to wxWidgets functions, so you can still crash the program. wxWidgets 2.9 in release mode has the assert checks enabled so you do get some protection with the wxCHECK_MSG dialogs. I do not know if wxPython adds extra checks, but I don't think it does since that would take an incredible amount of effort. > And if I continue with wxLua do you think it will be a > big task to try to create bindings for the rest of the wxWidgets library. Not really, you can see the bindings in the bindings/wxwidgets directory and basically they're stripped down headers. If no virtual functions have to be overridden a class can be implemented in an hour. The hardest part is making sure you really got it cross-platform and working in 2.8 and 2.9. http://wxlua.sourceforge.net/docs/binding.html Regards, John ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users