File: 001.lua

package info (click to toggle)
lua-gtk 0.8%2B20080510%2Bdash-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,236 kB
  • ctags: 1,308
  • sloc: ansic: 6,659; sh: 717; makefile: 114
file content (9 lines) | stat: -rwxr-xr-x 175 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#! /usr/bin/env lua
require "gtk"

-- test that arbitrary values can be stored in a widget.

win = gtk.window_new(gtk.GTK_WINDOW_TOPLEVEL)
win._foo = 1
assert(win._foo == 1)