Package parpg :: Package gui :: Module filebrowser :: Class FileBrowser
[hide private]
[frames] | no frames]

Class FileBrowser

source code

object --+
         |
        FileBrowser

FileBrowser displays directory and file listings from the vfs. The file_selected parameter is a callback invoked when a file selection has been made; its signature must be file_selected(path,filename). If select_dir is set, file_selected's filename parameter should be optional. The save_file option provides a box for supplying a new filename that doesn't exist yet. The select_dir option allows directories to be selected as well as files.

Instance Methods [hide private]
 
__init__(self, engine, settings, file_selected, gui_xml_path, close_callback=None, save_file=False, select_dir=False, extensions=('.dat',))
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
close(self)
Closes the browser
source code
 
showBrowser(self)
Shows the file dialog browser
source code
 
_setPath(self)
Path change callback.
source code
 
_selectFile(self)
File selection callback.
source code
 
_warningMessage(self)
Shows the warning message dialog when a file with a faulty extension was selected.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, engine, settings, file_selected, gui_xml_path, close_callback=None, save_file=False, select_dir=False, extensions=('.dat',))
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)