How can I make an GUI Application in Lua

后端 未结 5 2017
广开言路
广开言路 2021-02-04 09:53

First I\'ll show you an example of what I am talking about: GUI Example

I\'ve been studying Lua for around a week now, and I\'m really curious of how I would do this. Ba

5条回答
  •  礼貌的吻别
    2021-02-04 10:17

    IUP should be the easiest way to create a GUI with Lua. However you will meet a brick wall if you try to install IUP on Linux. You have to hope someone has pre-installed it or someone has pre-written an install package for your version of Linux. If you want other people to be able to run your code later it will be virtually impossible to set things up in reasonable way. That is really an error by the Lua/Iup team because I have no trouble in using Iup from the C programming language and it seems to be widely compatible with many versions of Linux. It is the opposite of the usual situation where it is very easy to set up a scripting language and difficult to set up a low level language like C.

提交回复
热议问题