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. |
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)
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
Get the current column value.
int
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)
.
Get the current row value.
int
Set both the row and column properties.
None
Set a new column value.
col (int)
None
Set a new row value.
row (int)
None
Compare inequality of two GBPositions.
p (wx.GBPosition)
Compare equality of two GBPositions.
p (wx.GBPosition)