Functions

get_major_version ()

get_micro_version ()

get_minor_version ()

get_player_from_ancestor (widget)

get_resource ()

get_version_s ()

Details

ClapperGtk.get_major_version()
Returns:

the major version number of the ClapperGtk library

Return type:

int

ClapperGtk runtime major version component

This returns the ClapperGtk library version your code is running against unlike [const`ClapperGtk`.MAJOR_VERSION] which represents compile time version.

New in version 0.10.

ClapperGtk.get_micro_version()
Returns:

the micro version number of the ClapperGtk library

Return type:

int

ClapperGtk runtime micro version component

This returns the ClapperGtk library version your code is running against unlike [const`ClapperGtk`.MICRO_VERSION] which represents compile time version.

New in version 0.10.

ClapperGtk.get_minor_version()
Returns:

the minor version number of the ClapperGtk library

Return type:

int

ClapperGtk runtime minor version component

This returns the ClapperGtk library version your code is running against unlike [const`ClapperGtk`.MINOR_VERSION] which represents compile time version.

New in version 0.10.

ClapperGtk.get_player_from_ancestor(widget)
Parameters:

widget (Gtk.Widget) – a Gtk.Widget

Returns:

a Clapper.Player from ancestor of a widget.

Return type:

Clapper.Player or None

Get [class`Clapper`.Player] used by [class`ClapperGtk`.Av] ancestor of widget.

This utility is a convenience wrapper for calling [method`Gtk`.Widget.get_ancestor] of type CLAPPER_GTK_TYPE_AV and [method`ClapperGtk`.Av.get_player] with additional None checking and type casting.

This is meant to be used mainly for custom widget development as an easy access to the underlying parent [class`Clapper`.Player] object. If you want to get the player from [class`ClapperGtk`.Av] widget itself, use [method`ClapperGtk`.Av.get_player] instead.

Rememeber that this function will return None when widget does not have a [class`ClapperGtk`.Av] ancestor in widget hierarchy (widget is not yet placed).

ClapperGtk.get_resource()
Return type:

Gio.Resource

ClapperGtk.get_version_s()
Returns:

the version of the ClapperGtk library as string

Return type:

str

ClapperGtk runtime version as string

This returns the ClapperGtk library version your code is running against unlike [const`ClapperGtk`.VERSION_S] which represents compile time version.

New in version 0.10.