Mercurial > pidgin
view finch/libgnt/pygnt/file.py @ 20225:3c415481a943
applied changes from 388507622896337fe56945f851e3aabee3c0427f
through 025faf23aaac403798451974c320c4de6df470d5
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 28 Sep 2007 15:48:49 +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()