On 4/27/07, John Labenski <[EMAIL PROTECTED]> wrote:
> On 4/27/07, Kees Jongenburger <[EMAIL PROTECTED]> wrote:
> > Hello
> >
> > I have created a small sample of using wxLua with xrc file.
> > The example is really trivial but I think it really show the power the
> > lua/wx/xrc combo
> >
> > I would like such a sample to be in the samples directory
>
> We have the calculator sample already, is it not clear enough? If you
> really think that having a very simple xrc sample would help, that's
> fine and I'll add it, I just want to make sure that it makes sense.

I have seen the calculator sample that exactly  what made me go "OK
lets look into this"
This is why i spent a little more time getting things working.
Here is what happened. Of course I did not read the documentation
and after building wxLua I went to the samples directory I saw
that the files had a lua extension so I assumed I could run them
from the command line by using the lua command. That did not work
for all only luamodule.wx.lua worked. So I stated adding

package.cpath =
";;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;"
require("wx")

and
wx.wxGetApp():MainLoop()

to all the samples really thinking it was kind of weird that the
samples did not work
and I assumed them to be outdated. Of course the best thing is to blame me for
not being smart :p but this was my first encounter with wxLua(just so
you know , perhaps just adding a bit of documentation inside the
samples telling how to run them would be enough)
, I did not know at that point that there  was a wxlua command. I
think my sample make sence.
 I would be willing to create a few sample usages of the same sample
(embeded , stantalone running with lua and running with wxlua) I would
have given me a hint on how to use wxLua.


> The calc sample has some code for helping the user find the xrc code
> which is very nice since otherwise the sample seems "broken" if the
> xrc file can't be found. This happens if you run it from the
> wxLuaEditor since the current working directory will be wrong unless
> you started wxLuaEdit from the same dir that the xrc file is in.
See my comments above , they way I looked at the none of the samples
where working.


>
> > p.s. I also posted a while ago about xwLua
> > http://www.maemopeople.org/index.php/keesj/2007/02/07/p49#more49
> > It might be rewarding to know wxLua was running on the maemo platform
>
> That's very cool, I didn't know that wxWidgets worked on phones!
The Nokia 770 and N800 are not phones but internet tablets(you can not make
gprs phone calls with them) They run a small linux distro a x server ,
gtk etc(moost of the stuff is open source). So I don't know if wxLua will work
 on simbian phones

>
> Can I use your screenshot on wxlua.sf.net? Could you give some details
> about it, eg. what phone (Nokia N700 right?), you're using an emulator
> I guess (which one?), etc.
This was a screen shot taken from the  actual device (using x11vnc).
since it is linux based it is not really an emulator but there is the
maemo.org website
where you can download a sdk, after that you can compile and test programs
on your linux machine by running a small x server (Xephyr) and
starting the maemo desktop.

If still interesting for you feel free to ask for more. I would like
to provide .deb package for the nokia 770 and N800 if possible with
running samples

greetings

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to