bosing.GridEntry

class bosing.GridEntry(element, column=0, span=1)

基类:object

A child element in a grid layout.

参数:
  • element (Element) -- Child element.

  • column (int) -- Column index.

  • span (int) -- Column span.

column
static convert(obj)

Convert the value to GridEntry.

The value can be:

  • GridEntry

  • Element

  • tuple[Element, int]: Element and column.

  • tuple[Element, int, int]: Element, column, and span.

参数:

obj (GridEntry | Element | tuple[Element, int] | tuple[Element, int, int]) -- Value to convert.

返回:

Converted value.

返回类型:

GridEntry

抛出:

ValueError -- If the value cannot be converted.

element
span