FileChooserNative
Deprecated since version 4.10: Use FileDialog
instead
Superclasses: NativeDialog
, Object
Implemented Interfaces: FileChooser
- Constructors:
FileChooserNative(**properties)
new(title:str=None, parent:Gtk.Window=None, action:Gtk.FileChooserAction, accept_label:str=None, cancel_label:str=None) -> Gtk.FileChooserNative
Constructors
- class FileChooserNative
- classmethod new(title: str | None, parent: Window | None, action: FileChooserAction, accept_label: str | None = None, cancel_label: str | None = None) FileChooserNative
Creates a new
GtkFileChooserNative
.Deprecated since version 4.10: Use
FileDialog
instead- Parameters:
title – Title of the native
parent – Transient parent of the native
action – Open or save mode for the dialog
accept_label – text to go in the accept button, or
None
for the defaultcancel_label – text to go in the cancel button, or
None
for the default
Methods
- class FileChooserNative
- get_accept_label() str | None
Retrieves the custom label text for the accept button.
Deprecated since version 4.10: Use
FileDialog
instead
- get_cancel_label() str | None
Retrieves the custom label text for the cancel button.
Deprecated since version 4.10: Use
FileDialog
instead
- set_accept_label(accept_label: str | None = None) None
Sets the custom label text for the accept button.
If characters in
label
are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__
” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic.Pressing Alt and that key should activate the button.
Deprecated since version 4.10: Use
FileDialog
instead- Parameters:
accept_label – custom label
- set_cancel_label(cancel_label: str | None = None) None
Sets the custom label text for the cancel button.
If characters in
label
are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__
” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic.Pressing Alt and that key should activate the button.
Deprecated since version 4.10: Use
FileDialog
instead- Parameters:
cancel_label – custom label