| |
- 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 cancelled. (All this emulates the
behavior of the Macintosh file selection dialogs.)
|
| |
- __init__(self, master, title=None)
- no doc string
- cancel_command(self, event=None)
- no doc string
- dirs_double_event(self, event)
- no doc string
- dirs_select_event(self, event)
- no doc string
- files_double_event(self, event)
- no doc string
- files_select_event(self, event)
- no doc string
- filter_command(self, event=None)
- no doc string
- get_filter(self)
- no doc string
- get_selection(self)
- no doc string
- go(self, dir_or_file='.', pattern='*', default='', key=None)
- no doc string
- ok_command(self)
- no doc string
- ok_event(self, event)
- no doc string
- quit(self, how=None)
- no doc string
- set_filter(self, dir, pat)
- no doc string
- set_selection(self, file)
- no doc string
|
|