This class is used to hold the row and column spanning attributes of items in a wx.GridBagSizer.
Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction. |
|
Return the rowspan and colspan properties as a tuple. |
|
Get the current colspan value. |
|
Returns an immutable representation of the |
|
Get the current rowspan value. |
|
Set both the rowspan and colspan properties. |
|
Set a new colspan value. |
|
Set a new rowspan value. |
|
Compare inequality of two GBSpans. |
|
Compare equality of two GBSpans. |
See |
|
See |
|
See |
|
See |
wx.
GBSpan
(object)¶Possible constructors:
GBSpan() -> None
GBSpan(rowspan : int, colspan : int) -> None
This class is used to hold the row and column spanning attributes of items in a GridBagSizer.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction.
None
__init__ (self, rowspan : int, colspan : int)
Construct a new wx.GBSpan, setting the rowspan
and colspan
.
rowspan (int) –
colspan (int) –
None
Get
(self)¶Return the rowspan and colspan properties as a tuple.
GetColspan
(self)¶Get the current colspan value.
int
GetIM
(self)¶Returns an immutable representation of the wx.GBSpan
object, based on namedtuple
.
This new object is hashable and can be used as a dictionary key,
be added to sets, etc. It can be converted back into a real wx.GBSpan
with a simple statement like this: obj = wx.GBSpan(imObj)
.
GetRowspan
(self)¶Get the current rowspan value.
int
Set
(self, rowspan: int=0, colspan: int=0)¶Set both the rowspan and colspan properties.
None
SetColspan
(self, colspan : int)¶Set a new colspan value.
colspan (int) –
None
SetRowspan
(self, rowspan : int)¶Set a new rowspan value.
rowspan (int) –
None
__bool__
(self)¶__getitem__
(self, idx)¶__len__
(self)¶__nonzero__
(self)¶__reduce__
(self)¶__repr__
(self)¶__setitem__
(self, idx, val)¶__str__
(self)¶Colspan
¶See GetColspan
and SetColspan
Rowspan
¶See GetRowspan
and SetRowspan
colspan
¶See GetColspan
and SetColspan
rowspan
¶See GetRowspan
and SetRowspan