Gfls.LoaderConfigSimple

g GObject.Object GObject.Object Gfls.LoaderConfigSimple Gfls.LoaderConfigSimple GObject.Object->Gfls.LoaderConfigSimple

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new_from_file (file)

class

new_from_stream (input_stream)

get_file ()

get_stream ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Gfls.LoaderConfigSimple(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gfls.LoaderConfigSimpleClass

classmethod new_from_file(file)
Parameters:

file (Gio.File) – a Gio.File.

Returns:

a new Gfls.LoaderConfigSimple object.

Return type:

Gfls.LoaderConfigSimple

Creates a new Gfls.LoaderConfigSimple object with file for the input content.

New in version 0.2.

classmethod new_from_stream(input_stream)
Parameters:

input_stream (Gio.InputStream) – a Gio.InputStream.

Returns:

a new Gfls.LoaderConfigSimple object.

Return type:

Gfls.LoaderConfigSimple

Creates a new Gfls.LoaderConfigSimple object with input_stream for the input content.

To load from stdin, a useful function is Gio.ApplicationCommandLine.get_stdin().

New in version 0.2.

get_file()
Returns:

the Gio.File of self, or None.

Return type:

Gio.File or None

New in version 0.2.

get_stream()
Returns:

the Gio.InputStream of self, or None.

Return type:

Gio.InputStream or None

New in version 0.2.