view finch/libgnt/pygnt/file.py @ 19770:ebf4fe12ad10

merge of '568fa1d06eec5b85c215976c97bba59da8c139a7' and 'b5d08ea2ffcf40d88397c533814778a4675f6cf5'
author Luke Schierer <lschiere@pidgin.im>
date Wed, 12 Sep 2007 13:00:42 +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()