Functions¶
|
|
|
|
Details¶
- ClapperGtk.get_major_version()¶
- Returns:
the major version number of the ClapperGtk library
- Return type:
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:
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:
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) – aGtk.Widget- Returns:
a
Clapper.Playerfrom ancestor of a widget.- Return type:
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_AVand [method`ClapperGtk`.Av.get_player] with additionalNonechecking 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
Nonewhen widget does not have a [class`ClapperGtk`.Av] ancestor in widget hierarchy (widget is not yet placed).
- ClapperGtk.get_resource()¶
- Return type:
- ClapperGtk.get_version_s()¶
- Returns:
the version of the ClapperGtk library as string
- Return type:
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.