view finch/libgnt/pygnt/file.py @ 21040:cb086fef7ca1

Consider buddy list obscured if it is partially obscured in addition to fully obscured. This will cause a partially obscured buddy list to get raised when clicking on the docklet rather than hiding it. Fixes #2740.
author Casey Harkins <charkins@pidgin.im>
date Sun, 28 Oct 2007 17:53:14 +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()