lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 03.01.11 19:12, schrieb Gaspard Bucher:

> This reminds me a lot of Qt's QML
> language http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeintroduction.html
> 
> I first thought I would be using QML to create the GUI but then I find
> it easier to test and build things step by step in Lua.

Indeed.

> In your article, you are using the constructors inside the table and not
> just their name. Why not use names and "execute" the view with for loops
> (or recursively by passing the table in the constructor) :
> 
> |{
>   class='HBoxLayout',
>   x=0, y=0, width=300, height=150,
>   children={ ... },
> }|

Hm, can you give a bit longer example of your idea?  I seem not to grasp
what you mean here...

- Marc

> 
> 
> Gaspard
> 
> On Thu, Dec 30, 2010 at 3:52 PM, Marc Balmer <marc@msys.ch
> <mailto:marc@msys.ch>> wrote:
> 
>     A short article by me about using Lua for graphical user interfaces:
> 
>     http://www.vnode.ch/lua_gui
> 
>     (beware, it involves OpenMotif ;)
> 
>