KDE 4.2 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KButtonGroup Class Reference

from PyKDE4.kdeui import *

Inherits: QGroupBox → QWidget → QObject

Detailed Description

Group box with index of the selected radio button KGroupBox is a simple group box that can keep track of the current selected radio button of the ones added to it.

Use normally as you would with a QGroupBox.

Author:
Pino Toscano <toscano.pino@tiscali.it>


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)
 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 radio button, or calling setSelected()) change the id of the current selected. id is the index of the new selected radio button.

Signal syntax:
QObject.connect(source, SIGNAL("changed(int)"), target_slot)
childEvent (  self,
QChildEvent  event
)

Reimplemented from QGroupBox.

clicked (  self,
int  id
)

The radio button with index id was clicked

Signal syntax:
QObject.connect(source, SIGNAL("clicked(int)"), target_slot)
pressed (  self,
int  id
)

The radio button with index id was pressed

Signal syntax:
QObject.connect(source, SIGNAL("pressed(int)"), target_slot)
released (  self,
int  id
)

The radio 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 QRadioButton, among the QRadioButton's added to the widget.

Returns:
the index of the selected radio button

setSelected (  self,
int  id
)

Select the id -th radio button

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal