Mercurial > pidgin
view finch/libgnt/pygnt/file.py @ 19278:9a8bb33fc60a
merge of 'c6cd7cce984b6e47dfbce5041ac4bd47a1267e05'
and 'fe19bc6b502b24b00a8fb3c3560dcb3171bd29d1'
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Fri, 17 Aug 2007 01:54:19 +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()