KButtonGroup Class Reference
from PyKDE4.kdeui import *
Inherits: QGroupBox → QWidget → QObject
Detailed Description
Group box with index of the selected button KGroupBox is a simple group box that can keep track of the current selected button of the ones added to it.
Use normally as you would with a QGroupBox.
Signals | |
changed (int id) | |
clicked (int id) | |
pressed (int id) | |
released (int id) | |
Methods | |
__init__ (self, QWidget parent=0) | |
changed (self, int id) | |
childEvent (self, QChildEvent event) | |
clicked (self, int id) | |
int | id (self, QAbstractButton button) |
pressed (self, int id) | |
released (self, int id) | |
int | selected (self) |
setSelected (self, int id) |
Method Documentation
__init__ | ( | self, | ||
QWidget | parent=0 | |||
) |
Construct a new empty KGroupBox.
changed | ( | self, | ||
int | id | |||
) |
Emitted when anything (a click on a button, or calling setSelected()) change the id of the current selected. id is the index of the new selected button.
- Signal syntax:
QObject.connect(source, SIGNAL("changed(int)"), target_slot)
childEvent | ( | self, | ||
QChildEvent | event | |||
) |
Reimplemented from QGroupBox.
clicked | ( | self, | ||
int | id | |||
) |
The button with index id was clicked
- Signal syntax:
QObject.connect(source, SIGNAL("clicked(int)"), target_slot)
int id | ( | self, | ||
QAbstractButton | button | |||
) |
- Returns:
- the index of button.
- Since:
- 4.3
pressed | ( | self, | ||
int | id | |||
) |
The button with index id was pressed
- Signal syntax:
QObject.connect(source, SIGNAL("pressed(int)"), target_slot)
released | ( | self, | ||
int | id | |||
) |
The button with index id was released
- Signal syntax:
QObject.connect(source, SIGNAL("released(int)"), target_slot)
int selected | ( | self ) |
Return the index of the selected QAbstractButton, among the QAbstractButton's added to the widget.
- Returns:
- the index of the selected button
setSelected | ( | self, | ||
int | id | |||
) |
Select the id -th button