wx.GBPosition¶This class represents the position of an item in a virtual grid of rows and columns managed by a wx.GridBagSizer.
Methods Summary¶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. |
Class API¶wx.GBPosition(object)¶Possible constructors:
GBPosition()
GBPosition(row, col)
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).
__init__ (self, row, col)
Construct a new wx.GBPosition, setting the row and column.
row (int) –
col (int) –
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=0, col=0)¶Set both the row and column properties.
SetCol(self, col)¶Set a new column value.
col (int) –
SetRow(self, row)¶Set a new row value.
row (int) –
__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) –