RadioButton Class Reference
from PyKDE4.plasma import *
Inherits: QGraphicsProxyWidget → QGraphicsWidget → QObject
Namespace: Plasma
Detailed Description
RadioButton plasma/widgets/radiobutton.h <Plasma/Widgets/RadioButton>
Provides a plasma-themed QRadioButton.
Method Documentation
- Returns:
- the image path being displayed currently, or an empty string if none.
- Returns:
- the checked state
- Returns:
- the native widget wrapped by this RadioButton
setChecked |
( |
self, |
|
|
|
bool |
checked |
|
) |
|
|
|
Sets the checked state.
@arg checked true if checked, false if not
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 RadioButton
@arg stylesheet a CSS string
Sets the display text for this RadioButton
@arg text the text to display; should be translated.
- Returns:
- the stylesheet currently used with this widget
- Returns:
- the display text
toggled |
( |
self, |
|
|
|
bool |
a0 |
|
) |
|
|
|
- Signal syntax:
QObject.connect(source, SIGNAL("toggled(bool)"), target_slot)