ponty / psidialogs

Python Simple Dialogs
BSD 2-Clause "Simplified" License
34 stars 2 forks source link

Bugfix - Added support for use of zenity --directory option when calling psidialogs.ask_folder() #3

Closed gregwjacobs closed 11 years ago

gregwjacobs commented 11 years ago

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

ponty commented 11 years ago

Thanks!