wx.GBSpan¶This class is used to hold the row and column spanning attributes of items in a wx.GridBagSizer.
Class Hierarchy¶
Inheritance diagram for class GBSpan:

Methods Summary¶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. |
Properties Summary¶See |
|
See |
|
See |
|
See |
Class API¶wx.GBSpan(object)¶Possible constructors:
GBSpan()
GBSpan(rowspan, colspan)
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.
__init__ (self, rowspan, colspan)
Construct a new wx.GBSpan, setting the rowspan and colspan.
rowspan (int) –
colspan (int) –
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=0, colspan=0)¶Set both the rowspan and colspan properties.
SetColspan(self, colspan)¶Set a new colspan value.
colspan (int) –
SetRowspan(self, rowspan)¶Set a new rowspan value.
rowspan (int) –
__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