|
From: Jens M. <jen...@gm...> - 2011-04-03 00:06:18
|
Hi,
I'm new to Lua and new to wxlua. I'm developing on Linux and did
$ ./configure
$ make
which worked.
But the following simple script with ShowFullScreen won't work.
test.lua:
#!/usr/bin/env lua
package.cpath = package.cpath..";wxLua/lib/?.so;"
require("wx")
frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "test", wx.wxDefaultPosition)
frame:ShowFullScreen(true)
wx.wxGetApp():MainLoop()
$ ./test.lua
lua: ./test.lua:6: wxLua: Unable to call an unknown method
'ShowFullScreen' on a 'wxFrame' type.
stack traceback:
[C]: ?
./test.lua:6: in main chunk
[C]: ?
Any ideas what I'm doing wrong?
Jens
|