This class represents the position of an item in any kind of grid of rows and columns such as GridBagSizer, or HVScrolledWindow.
__init__ | Construct a new Position, setting the row and column to the default value of (0, 0). |
Get | Return the row and col properties as a tuple. |
GetCol | A synonym for GetColumn . |
GetColumn | Get the current row value. |
GetRow | Get the current row value. |
SetCol | A synonym for SetColumn . |
SetColumn | Set a new column value. |
SetRow | Set a new row value. |
__getitem__ | |
__len__ | |
__nonzero__ | |
__reduce__ | |
__repr__ | |
__setitem__ | |
__str__ | |
__ne__ | |
__add__ | |
__iadd__ | |
__sub__ | |
__isub__ | |
__eq__ |
Col | See GetCol and SetCol |
Column | See GetColumn and SetColumn |
Row | See GetRow and SetRow |
This class represents the position of an item in any kind of grid of rows and columns such as GridBagSizer, or HVScrolledWindow.
Possible constructors:
Position()
Position(row, col)
Overloaded Implementations:
__init__ (self)
Construct a new Position, setting the row and column to the default value of (0, 0).
__init__ (self, row, col)
Construct a new Position, setting the row and column to the value of (row, col).
Parameters: |
|
---|
Return the row and col properties as a tuple.
Return type: | tuple |
---|---|
Returns: | ( row, col ) |
Get the current row value.
Return type: | int |
---|
Get the current row value.
Return type: | int |
---|
Set a new column value.
Parameters: | column (int) – |
---|
Set a new row value.
Parameters: | row (int) – |
---|
Overloaded Implementations:
__add__ (self)
Parameters: | pos (Position) – |
---|
__add__ (self)
Parameters: | size (Size) – |
---|
Overloaded Implementations:
__iadd__ (self)
Parameters: | pos (Position) – |
---|
__iadd__ (self)
Parameters: | size (Size) – |
---|
Overloaded Implementations:
__sub__ (self)
Parameters: | pos (Position) – |
---|
__sub__ (self)
Parameters: | size (Size) – |
---|
Overloaded Implementations:
__isub__ (self)
Parameters: | pos (Position) – |
---|
__isub__ (self)
Parameters: | size (Size) – |
---|