示例#1
0
def filesavebox(msg=None, title=None, argInitialFile=None):
    """Original doc: A file to get the name of a file to save.
	Returns the name of a file, or None if user chose to cancel.

	if argInitialFile contains a valid filename, the dialog will
	be positioned at that file when it appears.
	"""
    return psidialogs.ask_file(message=msg, title=title, default=argInitialFile, save=True)
示例#2
0
def saveFileDialog(parent=None, title='Save', directory='', filename='', wildcard='All Files (*.*)|*.*', style=14):
    return psidialogs.ask_file(title=title, default=filename, save=True)
示例#3
0
def openFileDialog(parent=None, title='Open', directory='', filename='', wildcard='All Files (*.*)|*.*', style=33):
    return psidialogs.ask_file(title=title, default=filename, save=False)
示例#4
0
def AskFileForSave(message=None, savedFileName=None, version=None, defaultLocation=None, dialogOptionFlags=None, location=None, clientName=None, windowTitle=None, actionButtonLabel=None, cancelButtonLabel=None, preferenceKey=None, popupExtension=None, eventProc=None, fileType=None, fileCreator=None, wanted=None, multiple=None):
    """Original doc: Display a dialog asking the user for a filename to save to.

    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_file(message=message, save=True)
def asksaveasfilename(**options):
    """Original doc: Ask for a filename to save as"""
    return psidialogs.ask_file(save=True)
def askopenfilename(**options):
    """Original doc: Ask for a filename to open"""
    return psidialogs.ask_file(save=False)