view finch/libgnt/pygnt/file.py @ 20335:5defb0546059

applied changes from c848ad4c20988b5dac9ac164455d3ba2d7307230 through 9d35dde0c779cca73548172223ba557f27d61882
author Luke Schierer <lschiere@pidgin.im>
date Fri, 19 Oct 2007 18:36:08 +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()