This class is used to hold the row and column spanning attributes of items in a GridBagSizer.
__init__ | Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction. |
Get | Return the rowspan and colspan properties as a tuple. |
GetColspan | Get the current colspan value. |
GetRowspan | Get the current rowspan value. |
Set | Set both the rowspan and colspan properties. |
SetColspan | Set a new colspan value. |
SetRowspan | Set a new rowspan value. |
__getitem__ | |
__len__ | |
__nonzero__ | |
__reduce__ | |
__repr__ | |
__setitem__ | |
__str__ | |
__ne__ | Compare inequality of two GBSpans. |
__eq__ | Compare equality of two GBSpans. |
Colspan | See GetColspan and SetColspan |
Rowspan | See GetRowspan and SetRowspan |
colspan | See GetColspan and SetColspan |
rowspan | See GetRowspan and SetRowspan |
This class is used to hold the row and column spanning attributes of items in a GridBagSizer.
Possible constructors:
GBSpan()
GBSpan(rowspan, colspan)
Overloaded Implementations:
__init__ (self)
Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction.
__init__ (self, rowspan, colspan)
Construct a new GBSpan, setting the rowspan and colspan.
Parameters: |
|
---|
Return the rowspan and colspan properties as a tuple.
Return type: | tuple |
---|---|
Returns: | ( rowspan, colspan ) |
Get the current colspan value.
Return type: | int |
---|
Get the current rowspan value.
Return type: | int |
---|
Set both the rowspan and colspan properties.
Set a new colspan value.
Parameters: | colspan (int) – |
---|
Set a new rowspan value.
Parameters: | rowspan (int) – |
---|
See GetColspan and SetColspan
See GetRowspan and SetRowspan
See GetColspan and SetColspan
See GetRowspan and SetRowspan