ActionButtons Class Reference
from PyKDE4.polkitqt import *
Inherits: PolkitQt.ActionButton → PolkitQt.Action → QAction → QObject
Namespace: PolkitQt.ActionButtons
Detailed Description
\class ActionButtons actionbuttons.h ActionButtons
Class used to hold and update a list of QAbstractButtons
This class is a convenience wrapper around ActionButton that lets you associate an undefined number of QAbstractButtons with a single action. Every button will be updated accordingly upon action's properties changes.
- See also:
- ActionButton
Methods | |
__init__ (self, PolkitQt.ActionButtons a0) | |
__init__ (self, [QAbstractButto] buttons, QString actionId=QString(), QObject parent=0) | |
addButton (self, QAbstractButton button) | |
[QAbstractButto] | buttons (self) |
removeButton (self, QAbstractButton button) | |
setButtons (self, [QAbstractButto] buttons) |
Method Documentation
__init__ | ( | self, | ||
PolkitQt.ActionButtons | a0 | |||
) |
addButton | ( | self, | ||
QAbstractButton | button | |||
) |
Adds a button to the current button list. The button's properties will be updated according to the action upon adding.
- Parameters:
-
button the button to add
[QAbstractButto] buttons | ( | self ) |
Returns the current buttons list
- Returns:
- the buttons currently associated with the underlying action
removeButton | ( | self, | ||
QAbstractButton | button | |||
) |
Removes a button from the current list. Please note that Polkit-Qt does not handle the removed button's memory, so you should take care of deleting it yourself (if needed).
- Parameters:
-
button the button to remove
setButtons | ( | self, | ||
[QAbstractButto] | buttons | |||
) |
Sets a list of buttons associated to the underlying action.
- Note:
- If you are calling this function, you're probably changing the buttons list the action is referring to. If this is the case, please note that Polkit-Qt does not handle the previous buttons' memory, so you should take care of deleting them yourself (if needed). You can retrieve it by using buttons()
- See also:
- buttons
- Parameters:
-
buttons the new buttons associated with the underlying action