FileDialog
index
/usr/lib/python2.2/lib-tk/FileDialog.py

File selection dialog classes.
 
Classes:
 
FileDialog
LoadFileDialog
SaveFileDialog

 
Modules
            
fnmatch
os
sys
_tkinter
 
Classes
            
FileDialog
LoadFileDialog
SaveFileDialog
 
class FileDialog
      Standard file selection dialog -- no checks on selected file.
 
Usage:
 
    d = FileDialog(master)
    file = d.go(dir_or_file, pattern, default, key)
    if file is None: ...canceled...
    else: ...open file...
 
All arguments to go() are optional.
 
The 'key' argument specifies a key in the global dictionary
'dialogstates', which keeps track of the values for the directory
and pattern arguments, overriding the values passed in (it does
not keep track of the default argument!).  If no key is specified,
the dialog keeps no memory of previous state.  Note that memory is
kept even when the dialog is canceled.  (All this emulates the
behavior of the Macintosh file selection dialogs.)
 
   Methods defined here:
__init__(self, master, title=None)
cancel_command(self, event=None)
dirs_double_event(self, event)
dirs_select_event(self, event)
files_double_event(self, event)
files_select_event(self, event)
filter_command(self, event=None)
get_filter(self)
get_selection(self)
go(self, dir_or_file='.', pattern='*', default='', key=None)
ok_command(self)
ok_event(self, event)
quit(self, how=None)
set_filter(self, dir, pat)
set_selection(self, file)

Data and non-method functions defined here:
__doc__ = 'Standard file selection dialog -- no checks on ...f the Macintosh file selection dialogs.)\n\n '
__module__ = 'FileDialog'
title = 'File Selection Dialog'
 
class LoadFileDialog(FileDialog)
      File selection dialog which checks that the file exists.
 
   Methods defined here:
ok_command(self)

Data and non-method functions defined here:
__doc__ = 'File selection dialog which checks that the file exists.'
__module__ = 'FileDialog'
title = 'Load File Selection Dialog'

Methods inherited from FileDialog:
__init__(self, master, title=None)
cancel_command(self, event=None)
dirs_double_event(self, event)
dirs_select_event(self, event)
files_double_event(self, event)
files_select_event(self, event)
filter_command(self, event=None)
get_filter(self)
get_selection(self)
go(self, dir_or_file='.', pattern='*', default='', key=None)
ok_event(self, event)
quit(self, how=None)
set_filter(self, dir, pat)
set_selection(self, file)
 
class SaveFileDialog(FileDialog)
      File selection dialog which checks that the file may be created.
 
   Methods defined here:
ok_command(self)

Data and non-method functions defined here:
__doc__ = 'File selection dialog which checks that the file may be created.'
__module__ = 'FileDialog'
title = 'Save File Selection Dialog'

Methods inherited from FileDialog:
__init__(self, master, title=None)
cancel_command(self, event=None)
dirs_double_event(self, event)
dirs_select_event(self, event)
files_double_event(self, event)
files_select_event(self, event)
filter_command(self, event=None)
get_filter(self)
get_selection(self)
go(self, dir_or_file='.', pattern='*', default='', key=None)
ok_event(self, event)
quit(self, how=None)
set_filter(self, dir, pat)
set_selection(self, file)
 
Functions
            
test()
Simple test program.
 
Data
             ACTIVE = 'active'
ALL = 'all'
ANCHOR = 'anchor'
ARC = 'arc'
BASELINE = 'baseline'
BEVEL = 'bevel'
BOTH = 'both'
BOTTOM = 'bottom'
BROWSE = 'browse'
BUTT = 'butt'
CASCADE = 'cascade'
CENTER = 'center'
CHAR = 'char'
CHECKBUTTON = 'checkbutton'
CHORD = 'chord'
COMMAND = 'command'
CURRENT = 'current'
DISABLED = 'disabled'
E = 'e'
END = 'end'
EW = 'ew'
EXCEPTION = 8
EXTENDED = 'extended'
FALSE = 0
FIRST = 'first'
FLAT = 'flat'
GROOVE = 'groove'
HORIZONTAL = 'horizontal'
INSERT = 'insert'
INSIDE = 'inside'
LAST = 'last'
LEFT = 'left'
MITER = 'miter'
MOVETO = 'moveto'
MULTIPLE = 'multiple'
N = 'n'
NE = 'ne'
NO = 0
NONE = 'none'
NORMAL = 'normal'
NS = 'ns'
NSEW = 'nsew'
NUMERIC = 'numeric'
NW = 'nw'
OFF = 0
ON = 1
OUTSIDE = 'outside'
PAGES = 'pages'
PIESLICE = 'pieslice'
PROJECTING = 'projecting'
RADIOBUTTON = 'radiobutton'
RAISED = 'raised'
READABLE = 2
RIDGE = 'ridge'
RIGHT = 'right'
ROUND = 'round'
S = 's'
SCROLL = 'scroll'
SE = 'se'
SEL = 'sel'
SEL_FIRST = 'sel.first'
SEL_LAST = 'sel.last'
SEPARATOR = 'separator'
SINGLE = 'single'
SOLID = 'solid'
SUNKEN = 'sunken'
SW = 'sw'
StringTypes = (<type 'str'>, <type 'unicode'>)
TOP = 'top'
TRUE = 1
TclError = 'TclError'
TclVersion = 8.3000000000000007
TkVersion = 8.3000000000000007
UNITS = 'units'
VERTICAL = 'vertical'
W = 'w'
WORD = 'word'
WRITABLE = 4
X = 'x'
Y = 'y'
YES = 1
__file__ = '/usr/lib/python2.2/lib-tk/FileDialog.pyc'
__name__ = 'FileDialog'
dialogstates = {}