This class represents the position of an item in any kind of grid of rows and columns such as wx.GridBagSizer, or wx.HVScrolledWindow.
Construct a new wx.Position, setting the row and column to the default value of (0, 0). |
|
Return the row and col properties as a tuple. |
|
A synonym for |
|
Get the current row value. |
|
Returns an immutable representation of the |
|
Get the current row value. |
|
A synonym for |
|
Set a new column value. |
|
Set a new row value. |
|
See |
|
Possible constructors:
Position() -> None
Position(row : int, col : int) -> None
This class represents the position of an item in any kind of grid of rows and columns such as GridBagSizer, or HVScrolledWindow.
__init__ (self)
Construct a new wx.Position, setting the row and column to the default value of (0, 0).
None
__init__ (self, row : int, col : int)
Construct a new wx.Position, setting the row and column to the value of (row, col).
row (int)
col (int)
None
Return the row and col properties as a tuple.
tuple
( row, col )
Get the current row value.
int
Returns an immutable representation of the wx.Position
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.Position
with a simple statement like this: obj = wx.Position(imObj)
.
Get the current row value.
int
Set a new column value.
column (int)
None
Set a new row value.
row (int)
None
pos (wx.Position)
__add__ (self)
pos (wx.Position)
__add__ (self)
size (wx.Size)
__iadd__ (self)
pos (wx.Position)
__iadd__ (self)
size (wx.Size)
__sub__ (self)
pos (wx.Position)
__sub__ (self)
size (wx.Size)
__isub__ (self)
pos (wx.Position)
__isub__ (self)
size (wx.Size)
pos (wx.Position)