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. |
wx.grid.
GridCellCoords
(object)¶Possible constructors:
GridCellCoords()
GridCellCoords(row, col)
Represents coordinates of a grid cell.
__init__
(self, *args, **kw)¶__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
.
__init__ (self, row, col)
Constructor taking a row and a column.
row (int) –
col (int) –
Get
(self)¶Return the row and col properties as a tuple.
tuple
( row, col )
GetCol
(self)¶Return the column of the coordinate.
int
GetIM
(self)¶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)
.
GetRow
(self)¶Return the row of the coordinate.
int
Set
(self, row, col)¶Set the row and column of the coordinate.
row (int) –
col (int) –
SetCol
(self, n)¶Set the column of the coordinate.
n (int) –
SetRow
(self, n)¶Set the row of the coordinate.
n (int) –
__bool__
(self)¶__getitem__
(self, idx)¶__len__
(self)¶__nonzero__
(self)¶__reduce__
(self)¶__repr__
(self)¶__setitem__
(self, idx, val)¶__str__
(self)¶__ne__
(self)¶Inequality operator.
other (wx.grid.GridCellCoords) –
__eq__
(self)¶Equality operator.
other (wx.grid.GridCellCoords) –