Yeah, I'm more knowledgeable in Lua  than I  am in wxWidgets. This will be
the first time I have used it.

I found the wx.wxGetApp():MainLoop() line from the sample, and it works now.

I was told by someone that OnRun was a function that ran independent of GUI?

I'm actually making a network application, so it needs to be constantly
checking for events from the network. I will try the example John gave, with
the idle event, and see if that works.

Many thanks.

On 3/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote:

Hi,

Matthew Wild wrote:
>
>
> On 3/26/07, *Matthew Wild* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> wrote:
>
>     Ok, sorry it's been a while. Today I finally got to focus on the
>     wxLua part of my application :)
>
>     I found wxLua/modules/luamodule/src. Is this what I think it is? It
>     seems so. I built it, but although I can require() it, and my
>     program runs, absolutely nothing graphical happens. Any idea?
>
>
> Hmm, I got something to work. I realised the script actually has to
> finish before anything is displayed. When loaded as a module though,
> still absolutely nothing happens. Is there some function I can call to
> start the ball rolling?
>
>

Are you using something like?

--
package.path  = "?;?.lua;./app/?.lua"
package.cpath = "?;?.dll"
wx = require("wx")
dofile("test.lua")
wx.wxGetApp():MainLoop()
--



--
Regards,
Hakki Dogusan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to