This class represents the position of an item in a virtual grid of rows and columns managed by a GridBagSizer.
__init__ | Default constructor, setting the row and column to (0,0). |
Get | Return the row and col properties as a tuple. |
GetCol | Get the current column value. |
GetRow | Get the current row value. |
Set | Set both the row and column properties. |
SetCol | Set a new column value. |
SetRow | Set a new row value. |
__getitem__ | |
__len__ | |
__nonzero__ | |
__reduce__ | |
__repr__ | |
__setitem__ | |
__str__ | |
__ne__ | Compare inequality of two GBPositions. |
__eq__ | Compare equality of two GBPositions. |
Col | See GetCol and SetCol |
Row | See GetRow and SetRow |
col | See GetCol and SetCol |
row | See GetRow and SetRow |
This class represents the position of an item in a virtual grid of rows and columns managed by a GridBagSizer.
Possible constructors:
GBPosition()
GBPosition(row, col)
Overloaded Implementations:
__init__ (self)
Default constructor, setting the row and column to (0,0).
__init__ (self, row, col)
Construct a new GBPosition, setting the row and column.
Parameters: |
|
---|
Return the row and col properties as a tuple.
Return type: | tuple |
---|---|
Returns: | ( row, col ) |
Get the current column value.
Return type: | int |
---|
Get the current row value.
Return type: | int |
---|
Set both the row and column properties.
Set a new column value.
Parameters: | col (int) – |
---|
Set a new row value.
Parameters: | row (int) – |
---|
Compare inequality of two GBPositions.
Parameters: | p (GBPosition) – |
---|
Compare equality of two GBPositions.
Parameters: | p (GBPosition) – |
---|