This class represents the position of an item in a virtual grid of rows and columns managed by a wx.GridBagSizer.
Default constructor, setting the row and column to (0,0). |
|
Return the row and col properties as a tuple. |
|
Get the current column value. |
|
Returns an immutable representation of the |
|
Get the current row value. |
|
Set both the row and column properties. |
|
Set a new column value. |
|
Set a new row value. |
|
Compare inequality of two GBPositions. |
|
Compare equality of two GBPositions. |
wx.
GBPosition
(object)¶Possible constructors:
GBPosition() -> None
GBPosition(row : int, col : int) -> None
This class represents the position of an item in a virtual grid of rows and columns managed by a GridBagSizer.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor, setting the row and column to (0,0).
None
__init__ (self, row : int, col : int)
Construct a new wx.GBPosition, setting the row and column.
row (int) –
col (int) –
None
GetCol
(self)¶Get the current column value.
int
GetIM
(self)¶Returns an immutable representation of the wx.GBPosition
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.GBPosition
with a simple statement like this: obj = wx.GBPosition(imObj)
.
GetRow
(self)¶Get the current row value.
int
Set
(self, row: int=0, col: int=0)¶Set both the row and column properties.
None
SetCol
(self, col : int)¶Set a new column value.
col (int) –
None
SetRow
(self, row : int)¶Set a new row value.
row (int) –
None
__bool__
(self)¶__getitem__
(self, idx)¶__len__
(self)¶__nonzero__
(self)¶__reduce__
(self)¶__repr__
(self)¶__setitem__
(self, idx, val)¶__str__
(self)¶__ne__
(self)¶Compare inequality of two GBPositions.
p (wx.GBPosition) –
__eq__
(self)¶Compare equality of two GBPositions.
p (wx.GBPosition) –