Mercurial > pidgin.yaz
view finch/libgnt/pygnt/file.py @ 21904:9b299228431c
merge of '05319fdf1db00660d0c169657ed1b08ff621e5c7'
and 'a654aa0d3c35e43c2f23b266100bfdb4d98e2d73'
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Wed, 19 Dec 2007 11:31:37 +0000 |
parents | 5e1412f4e67a |
children |
line wrap: on
line source
#!/usr/bin/env python import gnt, sys def file_selected(widget, path, file, null): sys.stderr.write(path + " " + file) list = widget.get_selected_multi_files() for i in list: sys.stderr.write(i) gnt.gnt_init() win = gnt.Window() files = gnt.FileSel() files.set_multi_select(True) files.set_title("Files") files.connect("file_selected", file_selected, None) files.show() gnt.gnt_main() gnt.gnt_quit()