multiple file add

This commit is contained in:
Marcos Pinto 2007-06-29 02:00:15 +00:00
parent f3d83f687d
commit afd563d7b7

View File

@ -278,13 +278,14 @@ def show_file_open_dialog(parent=None, title=None):
f1.set_name(_("All files")) f1.set_name(_("All files"))
f1.add_pattern("*") f1.add_pattern("*")
chooser.add_filter(f1) chooser.add_filter(f1)
chooser.set_select_multiple(true)
chooser.set_icon_from_file(common.get_pixmap("deluge32.png")) chooser.set_icon_from_file(common.get_pixmap("deluge32.png"))
chooser.set_property("skip-taskbar-hint", True) chooser.set_property("skip-taskbar-hint", True)
response = chooser.run() response = chooser.run()
if response == gtk.RESPONSE_OK: if response == gtk.RESPONSE_OK:
result = chooser.get_filename() result = chooser.get_filenames()
else: else:
result = None result = None
chooser.destroy() chooser.destroy()