File: window.lua

package info (click to toggle)
lua-gtk 0.9%2B20100528-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,176 kB
  • ctags: 1,934
  • sloc: ansic: 9,571; sh: 373; makefile: 241
file content (14 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/env lua

-- The simplest possible Lua-Gtk application.

require "gtk"
require "glib"

win = gtk.window_new(gtk.WINDOW_TOPLEVEL)
t = getmetatable(win)
win:connect('destroy', gtk.main_quit)
win:set_title("Demo Program")
win:show()
gtk.main()