bosing.AbsoluteEntry

class bosing.AbsoluteEntry(time, element)

基类:object

A child element with an absolute time in a absolute layout.

The time of each child element is relative to the start of the absolute layout.

参数:
  • time (float) -- Time relative to the start of the parent element.

  • element (Element) -- Child element.

static convert(obj)

Convert the value to AbsoluteEntry.

the value can be:

  • AbsoluteEntry

  • Element

  • tuple[float, Element]: Time and element.

参数:

obj (AbsoluteEntry | Element | tuple[float, Element]) -- Value to convert.

返回:

Converted value.

返回类型:

AbsoluteEntry

抛出:

ValueError -- If the value cannot be converted.

element
time