Atk.Range

Fields

None

Methods

class

new (lower_limit, upper_limit, description)

copy ()

free ()

get_description ()

get_lower_limit ()

get_upper_limit ()

Details

class Atk.Range

A given range or subrange, to be used with Atk.Value

Atk.Range are used on Atk.Value, in order to represent the full range of a given component (for example an slider or a range control), or to define each individual subrange this full range is splitted if available. See Atk.Value documentation for further details.

classmethod new(lower_limit, upper_limit, description)[source]
Parameters:
  • lower_limit (float) – inferior limit for this range

  • upper_limit (float) – superior limit for this range

  • description (str) – human readable description of this range.

Returns:

a new Atk.Range

Return type:

Atk.Range

Creates a new Atk.Range.

New in version 2.12.

copy()[source]
Returns:

a new Atk.Range copy of self

Return type:

Atk.Range

Returns a new Atk.Range that is a exact copy of self

New in version 2.12.

free()[source]

Free self

New in version 2.12.

get_description()[source]
Returns:

the human-readable description of self

Return type:

str

Returns the human readable description of self

New in version 2.12.

get_lower_limit()[source]
Returns:

the lower limit of self

Return type:

float

Returns the lower limit of self

New in version 2.12.

get_upper_limit()[source]
Returns:

the upper limit of self

Return type:

float

Returns the upper limit of self

New in version 2.12.