Module FileDialog :: Class FileDialog
[show private | hide private]
[frames | no frames]

Class FileDialog

Known Subclasses:
LoadFileDialog

Standard file selection dialog -- no checks on selected file.

Usage:

    d = FileDialog(master)
    fname = d.go(dir_or_file, pattern, default, key)
    if fname 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.)

Method Summary
  __init__(self, master, title)
  cancel_command(self, event)
  dirs_double_event(self, event)
  dirs_select_event(self, event)
  files_double_event(self, event)
  files_select_event(self, event)
  filter_command(self, event)
  get_filter(self)
  get_selection(self)
  go(self, dir_or_file, pattern, default, key)
  ok_command(self)
  ok_event(self, event)
  quit(self, how)
  set_filter(self, dir, pat)
  set_selection(self, file)

Class Variable Summary
str title = 'File Selection Dialog'

Class Variable Details

title

Type:
str
Value:
'File Selection Dialog'                                                

Generated by Epydoc 2.1 on Wed Jul 20 11:51:05 2005 http://epydoc.sf.net