lua-users home
lua-l archive

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


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.

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={ ... },
}

Gaspard

On Thu, Dec 30, 2010 at 3:52 PM, Marc Balmer <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 ;)