|
class gtk.FileChooserDialog(gtk.Dialog, gtk.FileChooser): |
+--gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.Window +-- gtk.Dialog +-- gtk.FileChooserDialog
This widget is available in PyGTK 2.4 and above.
gtk.FileChooserDialog
is a dialog box suitable for use with "File/Open" or "File/Save as"
commands. This widget works by putting a gtk.FileChooserWidget
inside a gtk.Dialog
. It
implements the gtk.FileChooser
interface, so you can use all of the gtk.FileChooser
methods, signals and properties on the file chooser dialog as well as
those for gtk.Dialog
.
Note that gtk.FileChooserDialog
does not have any methods of its own. Instead, you should use the
methods and signals that work on a gtk.FileChooser
.
gtk.FileChooserDialog(title
=None, parent
=None, action
=gtk.FILE_CHOOSER_ACTION_OPEN, buttons
=None, backend
=None)
| The title of the dialog |
| The transient parent of the dialog, or None |
| The open or save mode for the dialog - one of:
gtk.FILE_CHOOSER_ACTION_OPEN ,
gtk.FILE_CHOOSER_ACTION_SAVE ,
gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER or
gtk.FILE_CHOOSER_ACTION_CREATE_FOLDER . |
| a tuple containing button label-response id pairs
or None |
| The name of the specific filesystem backend to use. |
Returns : | a new gtk.FileChooserDialog |
This constructor is available in PyGTK 2.4 and above.
Creates a new gtk.FileChooserDialog
. The
constructor can be invoked with the optional parameters:
title
, parent
,
action
, buttons
and
backend
. This constructor is analogous to the
gtk.Dialog() constructor.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.