finch/libgnt/pygnt/file.py

changeset 18826
a276583c694c
equal deleted inserted replaced
18809:5ba9bf0804fe 18826:a276583c694c
1 #!/usr/bin/env python
2
3 import gnt, sys
4
5 def file_selected(widget, path, file, null):
6 sys.stderr.write(path + " " + file)
7 list = widget.get_selected_multi_files()
8 for i in list:
9 sys.stderr.write(i)
10
11 gnt.gnt_init()
12
13 win = gnt.Window()
14
15 files = gnt.FileSel()
16 files.set_multi_select(True)
17 files.set_title("Files")
18 files.connect("file_selected", file_selected, None)
19
20 files.show()
21
22 gnt.gnt_main()
23
24 gnt.gnt_quit()

mercurial