Gtk.AppChooserDialog¶
Example¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Dialog (11), Gtk.Window (62), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Native (6), Gtk.Root (3), Gtk.AppChooser (3)
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w/en |
Signals¶
- Inherited:
Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1)
Fields¶
- Inherited:
Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1)
Class Details¶
- class Gtk.AppChooserDialog(*args, **kwargs)¶
- Bases:
- Abstract:
No
GtkAppChooserDialog
shows aGtkAppChooserWidget
inside aGtkDialog
.An example
Gtk.AppChooserDialog
Note that
GtkAppChooserDialog
does not have any interesting methods of its own. Instead, you should get the embeddedGtkAppChooserWidget
using [method`Gtk`.AppChooserDialog.get_widget] and call its methods if the generic [iface`Gtk`.AppChooser] interface is not sufficient for your needs.To set the heading that is shown above the
GtkAppChooserWidget
, use [method`Gtk`.AppChooserDialog.set_heading].- CSS nodes
GtkAppChooserDialog
has a single CSS node with the namewindow
and style class.appchooser
.Deprecated since version 4.10: The application selection widgets should be implemented according to the design of each platform and/or application requiring them.
- classmethod new(parent, flags, file)[source]¶
- Parameters:
parent (
Gtk.Window
orNone
) – aGtkWindow
flags (
Gtk.DialogFlags
) – flags for this dialogfile (
Gio.File
) – aGFile
- Returns:
a newly created
GtkAppChooserDialog
- Return type:
Creates a new
GtkAppChooserDialog
for the providedGFile
.The dialog will show applications that can open the file.
Deprecated since version 4.10: This widget will be removed in GTK 5
- classmethod new_for_content_type(parent, flags, content_type)[source]¶
- Parameters:
parent (
Gtk.Window
orNone
) – aGtkWindow
flags (
Gtk.DialogFlags
) – flags for this dialogcontent_type (
str
) – a content type string
- Returns:
a newly created
GtkAppChooserDialog
- Return type:
Creates a new
GtkAppChooserDialog
for the provided content type.The dialog will show applications that can open the content type.
Deprecated since version 4.10: This widget will be removed in GTK 5
- get_heading()[source]¶
- Returns:
the text to display at the top of the dialog, or
None
, in which case a default text is displayed- Return type:
Returns the text to display at the top of the dialog.
Deprecated since version 4.10: This widget will be removed in GTK 5