pedroalvesv / abstk Goto Github PK
View Code? Open in Web Editor NEWThe Abstract Toolkit – a widget toolkit for GUI and text-mode applications.
The Abstract Toolkit – a widget toolkit for GUI and text-mode applications.
only a white square is displayed for most examples.
I think we've discussed this at some point, but we may have ended up missing it.
I need to replace the list of options in a selector from a callback. Here's an example of what I'd like to be able to do:
https://gist.github.com/hishamhm/b948ef9e6e8df30d3e3ab8aacff4a80d
Here, if you have two monitors plugged in, I'd like to change the list of resolutions when the other monitor is plugged.
(To test this with a single monitor, use this fake output file:
https://gist.github.com/hishamhm/7db71de28f24b1cac9d1b8569c74576d
and replace io.popen("xrandr", "r")
with io.open("xrandr.fake", "r")
in the xrandr.lua script (note popen vs. open!) )
This feature is needed in the GoboLinux installer in the screen where you pick the time zone. You type in a substring with part of the time zone name, and the list above it shrinks to include only the elements that match.
Side note: the documentation of Selector argument for set_value is incorrect. It says it takes a boolean, but it takes a number (as its own example shows)
https://pedroalvesv.github.io/AbsTK/modules/abstk.html#Screen:set_value
It cuts the new list to the size of the old one
Message boxes aren't closing when buttons (besides X
) are pressed.
Widget's height seems to be based on its list length, instead of its visible items length
I have an Ubuntu 16.04 VPS (headless, no GTK libs) on which I try to run a sample app that uses AbsTK. I'm getting this error:
$ lua temp.lua
lua: /usr/local/share/lua/5.1/lgi/namespace.lua:151: Typelib file for namespace 'Gtk' (any version) not found
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/lgi/namespace.lua:151: in function 'require'
/usr/local/share/lua/5.1/abstk/AbsGtk.lua:13: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/abstk.lua:11: in main chunk
[C]: in function 'require'
temp.lua:1: in main chunk
[C]: ?
temp.lua
is just one of the sample apps:
local abstk = require 'abstk'
-- abstk.set_mode("curses")
local scr = abstk.new_screen("My First AbsTK UI")
scr:add_label('hellow', "Hello, World!")
scr:add_label('msg1', "This is a minimal example to demonstrate AbsTK.")
scr:add_label('msg2', "The Screen is the main object of the toolkit. It can run as standalone or added to a Wizard. Its routine consists in creating it (line 2), populating it (lines 3 to 7) and running it (line 8).")
scr:run()
It doesn't work even if I uncomment the second line, or if I run lua temp.lua curses
.
Trying to install the proper .typelib files for Gtk gets me into a whole lot of trouble, and dependencies that I don't really need on the VPS. AbsTK should probably give up on GTK when encountering this kind of error and switch to curses automatically.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.