Label Class Reference
from PyKDE4.plasma import *
Inherits: QGraphicsProxyWidget → QGraphicsWidget → QObject
Namespace: Plasma
Detailed Description
Label plasma/widgets/label.h <Plasma/Widgets/Label>
Provides a plasma-themed QLabel.
Method Documentation
- Returns:
- the alignment for the text used in the labels
dataUpdated |
( |
self, |
|
|
|
QString |
sourceName, |
|
|
Plasma.DataEngine.Data |
data |
|
) |
|
|
|
- Returns:
- the image path being displayed currently, or an empty string if none.
linkActivated |
( |
self, |
|
|
|
QString |
link |
|
) |
|
|
|
- Signal syntax:
QObject.connect(source, SIGNAL("linkActivated(const QString&)"), target_slot)
- Returns:
- the native widget wrapped by this Label
Sets the alignment for the text
@arg the desired alignment
Sets the path to an image to display.
@arg path the path to the image; if a relative path, then a themed image will be loaded.
setStyleSheet |
( |
self, |
|
|
|
QString |
stylesheet |
|
) |
|
|
|
Sets the stylesheet used to control the visual display of this Label
@arg stylesheet a CSS string
Sets the display text for this Label
@arg text the text to display; should be translated.
- Returns:
- the stylesheet currently used with this widget
- Returns:
- the display text