On Wed, Feb 27, 2013 at 7:29 PM, Mitchell Monahan <soccermit...@gmail.com> wrote: > Hello, when I use the code that is on http://wxlua.sourceforge.com (here is > the code in case you forgot:) > > frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "wxLua Minimal Demo", > wx.wxDefaultPosition, wx.wxSize(450, 450), > wx.wxDEFAULT_FRAME_STYLE) ... > -------------------------------------- > I get an error when I go to help --> about(in it's own window): > Lua: Error while running chunk > E:\lua\wxLua\init.lua:38: wxLua: expected a 'wxWindow' > for parameter 4, but got a 'nil'. > Function called: 'wxMessageBox(string,string,number,nil)' > 01. wxMessageBox([string,string,number,wxWindow,number,number]) > stack traceback: > [C]: in function 'wxMessageBox' > E:\lua\wxLua\init.lua:38: in function > <E:\lua\wxLua\init.lua:37> > [C]: in function 'MainLoop' > C:\Program Files (x86)\Lua\5.1\lExecuter.wlua:799: in > function '__main' > C:\Program Files (x86)\Lua\5.1\lExecuter.wlua:802: in main > chunk > [C]: ?
I don't understand how/why the frame variable is nil in the callback? > Yes, I did start this in the lexecutor that was included with Lua for > Windows, and I am also using the wxLua that was included with Lua for > Windows. I don't know about lexecutor or much about Lua for Windows. The code runs fine using the official wxLua binaries here: http://sourceforge.net/projects/wxlua/files/wxlua/ Regards, John ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users