On Mon, Jan 2, 2012 at 5:51 AM, fra III <ilt...@fa...> wrote:
> Hello All,
> when i run a lua script using wxLua, either mine that some of the
> examples in distribution, closing application do not exit automatically
> from the Lua interpreter, i.e. after closing main window i have to use
> ctrl-C to stop all. This happens either in terminal that using Scite
> editor.
> Is this normal?
No and I don't see that behaviour here in Fedora or MSW. If you simply run it as
$ wxLua minimal.wx.lua
then it should immediately exit when the minimal's wxFrame is closed.
Does it still happen when you run that sample?
> Also when i require wx the Lua function print is no working anymore
> (seems there is another recent post about this).
This was an unfortunate choice by me and the next version will not do
that when run using require.
A simple fix is to add this code that replaces the wxLua print
function back with the Lua print function.
print_wx = print -- save old print in case you want it...
print = print_lua
> I'm on Ubuntu 10.04 with wxwidget 2.8.12 from repository and
> wxLua from recent (?) git.
wxLua uses SVN now and has never used Git, so I don't know what
version you've got.
http://sourceforge.net/scm/?type=svn&group_id=140042
> Many thanks,
> apologies if stupid question (i'm not a programmer!),
> and Happy New Year (if it's matter for You).
Sorry about the delay and no problem about asking.
Regards,
John
|