A container widget to arrange other widgets in a table where items can span multiple columns or rows - even overlap (and then be raised or lowered accordingly to adjust stacking if they do overlap).
The row and column count is not fixed. The table widget adjusts itself when subobjects are added to it dynamically.
The most common way to use a table is:
table = Table(win)
table.show()
table.padding = (space_between_columns, space_between_rows)
table.pack(table_content_object, x_coord, y_coord, colspan, rowspan)
table.pack(table_content_object, next_x_coord, next_y_coord, colspan, rowspan)
table.pack(table_content_object, other_x_coord, other_y_coord, colspan, rowspan)
Bases: efl.elementary.object.Object
This is the class that actually implement the widget.
Get child object of table at given coordinates.
| Parameters: |
|
|---|---|
| Returns: | Child of object if find if not return None. |
New in version 1.8.
Faster way to remove all child objects from a table object.
| Parameters: | clear (bool) – If True, will delete children, else just remove from table. |
|---|
The homogeneous layout in the table
| Type : | bool |
|---|
Add a subobject on the table with the coordinates passed
Note
All positioning inside the table is relative to rows and columns, so a value of 0 for x and y, means the top left cell of the table, and a value of 1 for w and h means subobj only takes that 1 cell.
| Parameters: |
|
|---|
Padding between cells.
Default value is 0.
| Type : | (int, int) |
|---|
Get the packing location of an existing child of the table
See also
| Parameters: | subobj (Object) – The subobject to be modified in the table |
|---|---|
| Returns: | Row number, Column number, rowspan, colspan |
| Return type: | tuple of ints |
Set the packing location of an existing child of the table
Modifies the position of an object already in the table.
Note
All positioning inside the table is relative to rows and columns, so a value of 0 for x and y, means the top left cell of the table, and a value of 1 for w and h means subobj only takes that 1 cell.
| Parameters: |
|
|---|