Dazzle.FileChooserEntry

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.FileChooserEntry Dazzle.FileChooserEntry GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Bin->Dazzle.FileChooserEntry Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (title, action)

get_entry ()

get_file ()

set_file (file)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

action

Gtk.FileChooserAction

r/w

create-folders

bool

r/w

do-overwrite-confirmation

bool

r/w

file

Gio.File

r/w

filter

Gtk.FileFilter

r/w

local-only

bool

r/w

max-width-chars

int

r/w

show-hidden

bool

r/w

title

str

r/w

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.Bin

r

Class Details

class Dazzle.FileChooserEntry(**kwargs)
Bases:

Gtk.Bin

Abstract:

No

Structure:

Dazzle.FileChooserEntryClass

classmethod new(title, action)
Parameters:
Return type:

Gtk.Widget

get_entry()
Returns:

a Gtk.Entry

Return type:

Gtk.Entry

Gets the entry used by the Gtk.Entry.

New in version 3.32.

get_file()
Returns:

A Gio.File or None.

Return type:

Gio.File or None

Returns the currently selected file or None if there is no selection.

set_file(file)
Parameters:

file (Gio.File) –

Property Details

Dazzle.FileChooserEntry.props.action
Name:

action

Type:

Gtk.FileChooserAction

Default Value:

Gtk.FileChooserAction.OPEN

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.create_folders
Name:

create-folders

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.do_overwrite_confirmation
Name:

do-overwrite-confirmation

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.file
Name:

file

Type:

Gio.File

Default Value:

None

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.filter
Name:

filter

Type:

Gtk.FileFilter

Default Value:

None

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.local_only
Name:

local-only

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.max_width_chars
Name:

max-width-chars

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.show_hidden
Name:

show-hidden

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Dazzle.FileChooserEntry.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE