bosing.Direction

class bosing.Direction

基类:object

Layout order in a stack layout.

A stack layout has two possible children processing orders:

  • Direction.Backward:

    Process children in reverse order and schedule them as late as possible. This is the default order.

  • Direction.Forward:

    Process children in original order and schedule them as early as possible.

Backward = Direction.Backward
Forward = Direction.Forward
static convert(obj)

Convert the value to Direction.

The value can be:

参数:

obj (str | Direction) -- Value to convert.

返回:

Converted value.

返回类型:

Direction

抛出:

ValueError -- If the value cannot be converted.