MarbleGraphicsGridLayout Class Reference
from PyKDE4.marble import *
Inherits: Marble.AbstractMarbleGraphicsLayout
Namespace: Marble
Detailed Description
Methods |
| __init__ (self, int rows, int columns) |
| addItem (self, Marble.ScreenGraphicsItem item, int row, int column) |
Qt::Alignment | alignment (self) |
Qt::Alignment | alignment (self, Marble.ScreenGraphicsItem item) |
| setAlignment (self, Qt::Alignment align) |
| setAlignment (self, Marble.ScreenGraphicsItem item, Qt::Alignment a1) |
| setSpacing (self, int spacing) |
int | spacing (self) |
| updatePositions (self, Marble.MarbleGraphicsItem parent) |
Method Documentation
__init__ |
( |
self, |
|
|
|
int |
rows, |
|
|
int |
columns |
|
) |
|
|
|
setSpacing |
( |
self, |
|
|
|
int |
spacing |
|
) |
|
|
|
Set the spacing between the items inside the layout. By default the spacing is 0.
Returns the spacing between the items inside the layout.
This updates the positions of all items in the layout.
Calling this will be done on every repainting, so you won't have to do it yourself.