Mercurial > pidgin
view finch/libgnt/pygnt/file.py @ 22483:7a815907ba5a
merge of '6db190b488381b25d0ad373ee417bc219d49b6bf'
and 'b3930a1430bfa8b0e784f0337ba5374066f6fc52'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 15 Mar 2008 19:41:30 +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()