Gtk.AppChooserDialog¶
Methods¶
| class | new(parent, flags, file) | 
| class | new_for_content_type(parent, flags, content_type) | 
| get_heading() | |
| get_widget() | |
| set_heading(heading) | 
Virtual Methods¶
| Inherited: | Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10) | 
|---|
Properties¶
| Inherited: | Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39), Gtk.AppChooser (1) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| gfile | Gio.File | r/w/co | The Gio.Fileused by the app chooser dialog | 
| heading | str | r/w/en | The text to show at the top of the dialog | 
Style Properties¶
| Inherited: | Gtk.Dialog (4), Gtk.Window (2), Gtk.Widget (17) | 
|---|
Signals¶
| Inherited: | Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1) | 
|---|
Fields¶
| Inherited: | Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | Gtk.Dialog | r | 
Class Details¶
- 
class Gtk.AppChooserDialog(*args, **kwargs)¶
- Bases: - Gtk.Dialog,- Gtk.AppChooser- Abstract: - No - Structure: - Gtk.AppChooserDialogClass- Gtk.AppChooserDialogshows a- Gtk.AppChooserWidgetinside a- Gtk.Dialog.- Note that - Gtk.AppChooserDialogdoes not have any interesting methods of its own. Instead, you should get the embedded- Gtk.AppChooserWidgetusing- Gtk.AppChooserDialog.get_widget() and call its methods if the generic- Gtk.AppChooserinterface is not sufficient for your needs.- To set the heading that is shown above the - Gtk.AppChooserWidget, use- Gtk.AppChooserDialog.set_heading().- 
classmethod new(parent, flags, file)[source]¶
- Parameters: - parent (Gtk.WindoworNone) – aGtk.Window, orNone
- flags (Gtk.DialogFlags) – flags for this dialog
- file (Gio.File) – aGio.File
 - Returns: - a newly created - Gtk.AppChooserDialog- Return type: - Creates a new - Gtk.AppChooserDialogfor the provided- Gio.File, to allow the user to select an application for it.- New in version 3.0. 
- parent (
 - 
classmethod new_for_content_type(parent, flags, content_type)[source]¶
- Parameters: - parent (Gtk.WindoworNone) – aGtk.Window, orNone
- flags (Gtk.DialogFlags) – flags for this dialog
- content_type (str) – a content type string
 - Returns: - a newly created - Gtk.AppChooserDialog- Return type: - Creates a new - Gtk.AppChooserDialogfor the provided content type, to allow the user to select an application for it.- New in version 3.0. 
- parent (
 - 
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: - stror- None- Returns the text to display at the top of the dialog. 
 - 
get_widget()[source]¶
- Returns: - the - Gtk.AppChooserWidgetof self- Return type: - Gtk.Widget- Returns the - Gtk.AppChooserWidgetof this dialog.- New in version 3.0. 
 
- 
classmethod 
Property Details¶
- 
Gtk.AppChooserDialog.props.gfile¶
- Name: - gfile- Type: - Gio.File- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The - Gio.Fileused by the- Gtk.AppChooserDialog. The dialog’s- Gtk.AppChooserWidgetcontent type will be guessed from the file, if present.
