tkFileDialog
index
/usr/local/lib/python2.3/lib-tk/tkFileDialog.py

# Instant Python
# $Id: tkFileDialog.py,v 1.11.8.1 2003/12/01 21:04:01 loewis Exp $
#
# tk common file dialogues
#
# this module provides interfaces to the native file dialogues
# available in Tk 4.2 and newer, and the directory dialogue available
# in Tk 8.3 and newer.
#
# written by Fredrik Lundh, May 1997.
#

 
Classes
       
tkCommonDialog.Dialog
Directory
_Dialog(tkCommonDialog.Dialog)
Open
SaveAs

 
class Directory(tkCommonDialog.Dialog)
    Ask for a directory
 
  Data and other attributes defined here:
command = 'tk_chooseDirectory'

Methods inherited from tkCommonDialog.Dialog:
__init__(self, master=None, **options)
show(self, **options)

 
class Open(_Dialog)
    Ask for a filename to open
 
 
Method resolution order:
Open
_Dialog
tkCommonDialog.Dialog

Data and other attributes defined here:
command = 'tk_getOpenFile'

Methods inherited from tkCommonDialog.Dialog:
__init__(self, master=None, **options)
show(self, **options)

 
class SaveAs(_Dialog)
    Ask for a filename to save as
 
 
Method resolution order:
SaveAs
_Dialog
tkCommonDialog.Dialog

Data and other attributes defined here:
command = 'tk_getSaveFile'

Methods inherited from tkCommonDialog.Dialog:
__init__(self, master=None, **options)
show(self, **options)

 
Functions
       
askdirectory(**options)
Ask for a directory, and return the file name
askopenfile(mode='r', **options)
Ask for a filename to open, and returned the opened file
askopenfilename(**options)
Ask for a filename to open
askopenfilenames(**options)
Ask for multiple filenames to open
 
Returns a list of filenames or empty list if 
cancel button selected
askopenfiles(mode='r', **options)
Ask for multiple filenames and return the open file
objects
 
returns a list of open file objects or an empty list if 
cancel selected
asksaveasfile(mode='w', **options)
Ask for a filename to save as, and returned the opened file
asksaveasfilename(**options)
Ask for a filename to save as