Пример #1
0
def diropenbox(msg=None, title=None, argInitialDir=None):
    """Original doc: A dialog to get a directory name.
	Note that the msg argument, if specified, is ignored.

	Returns the name of a directory, or None if user chose to cancel.

	If an initial directory is specified in argument 3,
	and that directory exists, then the
	dialog box will start with that directory.
	"""
    return psidialogs.ask_folder(message=msg, title=title, default=argInitialDir)
Пример #2
0
def dirDialog(parent=None, message='Choose a directory', path='', style=0, pos=wx.Point(-1, -1), size=wx.Size(-1, -1)):
    return psidialogs.ask_folder(message=message, default=path)
Пример #3
0
def ask_folder(message=None, version=None, defaultLocation=None, dialogOptionFlags=None, location=None, clientName=None, windowTitle=None, actionButtonLabel=None, cancelButtonLabel=None, preferenceKey=None, popupExtension=None, eventProc=None, filterProc=None, wanted=None, multiple=None):
    """Original doc: Display a dialog asking the user for select a folder.

    wanted is the return type wanted: FSSpec, FSRef, unicode or string (default)
    the other arguments can be looked up in Apple's Navigation Services documentation"""
    return psidialogs.ask_folder(message=message, title=windowTitle, ok=actionButtonLabel, cancel=cancelButtonLabel)
Пример #4
0
def askdirectory(**options):
    """Original doc: Ask for a directory, and return the file name"""
    return psidialogs.ask_folder()