diff -r 5ba9bf0804fe -r a276583c694c finch/libgnt/pygnt/file.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/finch/libgnt/pygnt/file.py Tue Jul 17 11:09:03 2007 +0000 @@ -0,0 +1,24 @@ +#!/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()