diff options
author | Alex Auvolat <alex@adnab.me> | 2017-05-09 19:29:06 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-05-09 19:29:06 +0200 |
commit | 83cc53def0abb6f44ebd95a7175e717e3c66cd48 (patch) | |
tree | 87e7beecd0f3f059a4a61ba0c819d2883846cee2 /src/sysapp/login | |
parent | d1aed44edf1bd6ab9cc11d7c8796051a5ae8e79d (diff) | |
download | kogata-83cc53def0abb6f44ebd95a7175e717e3c66cd48.tar.gz kogata-83cc53def0abb6f44ebd95a7175e717e3c66cd48.zip |
Grids & lua debugging
Diffstat (limited to 'src/sysapp/login')
-rw-r--r-- | src/sysapp/login/main.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sysapp/login/main.lua b/src/sysapp/login/main.lua index c3788a2..0303c4f 100644 --- a/src/sysapp/login/main.lua +++ b/src/sysapp/login/main.lua @@ -40,9 +40,20 @@ local img3 = tk.box({ hresize = true, }, tk.image(f)) wm:add(img3, "Window 3", 300, 150) + local txt = tk.text({color = tk.rgb(0, 255, 0), width=200}, "Hello, world!\nThis is a long text") wm:add(txt, "Text example", 32, 32) +local grid = tk.grid({border_size = 1}, { + { tk.box({hresize = true, width = 200, constrain_size = true, min_width = 16, control_size = 8}, tk.text("Name")), + tk.box({hresize = true, width = 100, constrain_size = true, min_width = 16, control_size = 8}, tk.text("Size")) }, + { tk.text("File A"), tk.text("10k") }, + { tk.text("File B"), tk.text("20k") }, + { tk.text("File C"), tk.text("15k") }, + }) +wm:add(tk.box({vresize = true, hresize = true, vscroll = true, hscroll = true}, grid), + "Grid example", 300, 20) + mainloop.run() |