[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] AbsTK – a widget toolkit for GUI and TUI applications
- From: Pedro Alves Valentim <pedroalvesvalentim@...>
- Date: Mon, 8 May 2017 23:28:42 -0700 (MST)
Enrico Colombini wrote
> On 08-May-17 04:35, Pedro Alves wrote:
>> Hi, everyone!
>> I'm here to announce AbsTK. The Abstract ToolKit is a widget toolkit for
>> GUI and TUI (text-based user interface) applications. It allows you to,
>> with the same source code, build a UI that runs on GUI (GTK) and TUI
>> (Curses). AbsTK is written in Lua and uses lgi
>> <https://github.com/pavouk/lgi/> and lcurses
>> <https://github.com/lcurses/lcurses> bindings.
>> * http://github.com/PedroAlvesV/AbsTK
> Looks nice! And documented with examples, too (the best sort of basic
> "All it accepts is "curses" and "gtk", because it's not the kind of
> thing that should be on the final version of your code"
> Why not? Would it not be appropriate for a program that could be run in
> single-user mode, or with an alternate text interface in case there is
> not enough memory?
About this quote, I admit it was written badly. What I meant was that
there're better ways to call this function than passing the raw arguments
table (suspension points).
"All it accepts is 'curses' and 'gtk', because it's not the kind of thing
that should be on the final version of your code."
"On the example above, I use the args table received when the application is
called. This function needs to be called, before any other AbsTK function,
with or without an argument, in order to determine which UI will be built.
This argument must be a string. More precisely, 'curses' or 'gtk'."
Pedro Alves Valentim
View this message in context: http://lua.2524044.n2.nabble.com/ANN-AbsTK-a-widget-toolkit-for-GUI-and-TUI-applications-tp7678122p7678133.html
Sent from the Lua-l mailing list archive at Nabble.com.