Represents coordinates of a grid cell.
An object of this class is simply a (row, column) pair.
Default constructor initializes the object to invalid state. |
|
Return the row and col properties as a tuple. |
|
Return the column of the coordinate. |
|
Returns an immutable representation of the |
|
Return the row of the coordinate. |
|
Set the row and column of the coordinate. |
|
Set the column of the coordinate. |
|
Set the row of the coordinate. |
|
Inequality operator. |
|
Equality operator. |
Possible constructors:
GridCellCoords() -> None
GridCellCoords(row : int, col : int) -> None
Represents coordinates of a grid cell.
__init__ (self)
Default constructor initializes the object to invalid state.
Initially the row and column are both invalid (-1) and so operator!
for an uninitialized wx.grid.GridCellCoords returns False
.
None
__init__ (self, row : int, col : int)
Constructor taking a row and a column.
row (int)
col (int)
None
Return the row and col properties as a tuple.
tuple
( row, col )
Return the column of the coordinate.
int
Returns an immutable representation of the wx.GridCellCoords
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.GridCellCoords
with a simple statement like this: obj = wx.GridCellCoords(imObj)
.
Return the row of the coordinate.
int
Set the row and column of the coordinate.
row (int)
col (int)
None
Set the column of the coordinate.
n (int)
None
Set the row of the coordinate.
n (int)
None
Inequality operator.
other (wx.grid.GridCellCoords)
Equality operator.
other (wx.grid.GridCellCoords)