Mercurial > pidgin
view finch/libgnt/pygnt/file.py @ 19582:d4fb44035799
merge of '1bc4d7f1a38917e6d2bf837a660f5f498a29ea0c'
and 'dd0060c3e748fd6d877ca32879c785c9bdb434fc'
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Mon, 03 Sep 2007 02:19:23 +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()