ponty/psidialogs — pull request #3 by gregwjacobs (2012-09-13 14:51:58+00:00)
Title: Bugfix - Added support for use of zenity --directory option when calling psidialogs.ask_folder()

When using zenity plugin, ask_folder() prompts user for string input instead of folder selection dialog.

Added this to _file
if folder:
options["--directory"] = None

Added new function

def ask_folder(self, args):
return self._file(args, multi=0, folder=1)

Modified _file dependent function ask_file() to match

def ask_file(self, args):
return self._file(args, multi=0, folder=0)

Tested on Ubuntu 12.04-1 on 32 Bit - base install