wx.GBSpan¶
This class is used to hold the row and column spanning attributes of items in a wx.GridBagSizer.
Class Hierarchy¶
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¶
- class wx.GBSpan(object)¶
Possible constructors:
GBSpan() -> None GBSpan(rowspan, colspan) -> None
This class is used to hold the row and column spanning attributes of items in a GridBagSizer.
Methods¶
- __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.
- Return type:
None
__init__ (self, rowspan, colspan)
Construct a new wx.GBSpan, setting the
rowspan
andcolspan
.- Parameters:
rowspan (int)
colspan (int)
- Return type:
None
- Get(self)¶
Return the rowspan and colspan properties as a tuple.
- Return type:
Any
- GetColspan(self)¶
Get the current colspan value.
- Return type:
int
- GetIM(self)¶
Returns an immutable representation of the
wx.GBSpan
object, based onnamedtuple
.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.
- Return type:
int
- Set(self, rowspan=0, colspan=0)¶
Set both the rowspan and colspan properties.
- Return type:
None
- SetColspan(self, colspan)¶
Set a new colspan value.
- Parameters:
colspan (int)
- Return type:
None
- SetRowspan(self, rowspan)¶
Set a new rowspan value.
- Parameters:
rowspan (int)
- Return type:
None
- __bool__(self)¶
- __getitem__(self, idx)¶
- __len__(self)¶
- __nonzero__(self)¶
- __reduce__(self)¶
- __repr__(self)¶
- __setitem__(self, idx, val)¶
- __str__(self)¶
Properties¶
- Colspan¶
See
GetColspan
andSetColspan
- Rowspan¶
See
GetRowspan
andSetRowspan
- colspan¶
See
GetColspan
andSetColspan
- rowspan¶
See
GetRowspan
andSetRowspan