Module eagle :: Class FileChooser
[hide private]
[frames] | no frames]

Class FileChooser
source code

object --+        
         |        
 _EGObject --+    
             |    
     _EGWidget --+
                 |
    object --+   |
             |   |
     AutoGenId --+
                 |
                FileChooser

A dialog to choose a file.


Attention: avoid using this directly, use App.file_chooser, OpenFileButton, SaveFileButton or SelectFolderButton instead.

Instance Methods [hide private]
  __init__(self, app, action, filename=None, title=None, filter=None, multiple=False)
Dialog to choose files.
  __gen_title__(self)
  __del__(self)
  __setup_gui__(self)
  run(self)

Inherited from _EGWidget: __get_resize_mode__, __get_widgets__, hide, set_active, set_inactive, show

Inherited from _EGObject: __repr__, __str__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__


Class Methods [hide private]

Inherited from AutoGenId: __get_id__


Class Variables [hide private]
ACTION_OPEN  
ACTION_SAVE  
ACTION_SELECT_FOLDER  
ACTION_CREATE_FOLDER  

Inherited from AutoGenId: last_id_num

Inherited from object: __class__


Properties [hide private]

Inherited from _EGWidget: app

Inherited from _EGObject: id


Method Details [hide private]

__init__(self, app, action, filename=None, title=None, filter=None, multiple=False)
(Constructor)

source code 
Dialog to choose files.

filter may be a single pattern (ie: '*.png'), mime type
(ie: 'text/html') or a list of patterns or mime types or
a list of lists, each sub list with a filter name and mime type/
patterns accepted. Examples:
  [ [ 'Images', '*.ppm', 'image/jpeg', 'image/png' ],
    [ 'Text', '*.text', 'text/plain' ],
  ]

Overrides: _EGWidget.__init__

__gen_title__(self)

source code 

__del__(self)
(Destructor)

source code 

__setup_gui__(self)

source code 

run(self)

source code 

Class Variable Details [hide private]

ACTION_OPEN

Value:
0                                                                     
      

ACTION_SAVE

Value:
1                                                                     
      

ACTION_SELECT_FOLDER

Value:
2                                                                     
      

ACTION_CREATE_FOLDER

Value:
3