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

Type FileChooser

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.

Method Summary
  __init__(self, app, action, filename, title, filter, multiple)
Dialog to choose files.
  __del__(self)
  __gen_title__(self)
  __setup_gui__(self)
  run(self)
    Inherited from _EGWidget
  __get_resize_mode__(self)
Return a tuple with ( horizontal, vertical ) resize mode
  __get_widgets__(self)
Return a list of internal widgets this Eagle widget contains.
  hide(self)
Make widget invisible.
  set_active(self, active)
Set the widget as active.
  set_inactive(self)
Same as set_active( False )
  show(self)
Make widget visible.
    Inherited from _EGObject
  __repr__(self)
  __str__(self)
    Inherited from AutoGenId
  __get_id__(classobj)
(Class method)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
    Inherited from _EGWidget
  app
    Inherited from _EGObject
  id

Class Variable Summary
int ACTION_CREATE_FOLDER = 3                                                                     
int ACTION_OPEN = 0                                                                     
int ACTION_SAVE = 1                                                                     
int ACTION_SELECT_FOLDER = 2                                                                     
    Inherited from AutoGenId
int last_id_num = 0                                                                     

Instance Method Details

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

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:
eagle._EGWidget.__init__

Class Variable Details

ACTION_CREATE_FOLDER

Type:
int
Value:
3                                                                     

ACTION_OPEN

Type:
int
Value:
0                                                                     

ACTION_SAVE

Type:
int
Value:
1                                                                     

ACTION_SELECT_FOLDER

Type:
int
Value:
2                                                                     

Generated by Epydoc 2.1 on Thu Apr 27 16:28:55 2006 http://epydoc.sf.net