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

Class SaveFileButton
source code

object --+            
         |            
 _EGObject --+        
             |        
     _EGWidget --+    
                 |    
            Button --+
                     |
        object --+   |
                 |   |
         AutoGenId --+
                     |
                    SaveFileButton

Push button to show dialog to choose a file to save.

Instance Methods [hide private]
  __init__(self, id=None, filename=None, filter=None, callback=None)
Constructor.

Inherited from Button: __setup_connections__, __setup_gui__

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]

Inherited from Button: stock_items

Inherited from Button (private): _gtk_stock_map

Inherited from AutoGenId: last_id_num

Inherited from object: __class__


Properties [hide private]

Inherited from Button: callback, stock

Inherited from _EGWidget: app

Inherited from _EGObject: id


Method Details [hide private]

__init__(self, id=None, filename=None, filter=None, callback=None)
(Constructor)

source code 
Constructor.
Parameters:
  • id - may not be provided, it will be generated automatically.
  • filename - default filename.
  • filter - filter files to show, see FileChooser.
  • callback - function (or list of functions) to call back when file is selected. Function will get as parameters:
    • app reference.
    • widget reference.
    • file name.
Overrides: Button.__init__

See Also: FileChooser