KGuiItem Class Reference
from PyKDE5.kwidgetsaddons import *
Detailed Description
An abstract class for GUI data such as ToolTip and Icon.
- Author:
- Holger Freyther <freyher@yahoo.com>
- See also:
- KStandardGuiItem
Methods |
| __init__ (self) |
| __init__ (self, QString text, QString iconName=QString(), QString toolTip=QString(), QString whatsThis=QString()) |
| __init__ (self, QString text, QIcon icon, QString toolTip=QString(), QString whatsThis=QString()) |
| __init__ (self, KGuiItem rhs) |
bool | hasIcon (self) |
QIcon | icon (self) |
QString | iconName (self) |
bool | isEnabled (self) |
QString | plainText (self) |
| setEnabled (self, bool enable) |
| setIcon (self, QIcon iconset) |
| setIconName (self, QString iconName) |
| setText (self, QString text) |
| setToolTip (self, QString tooltip) |
| setWhatsThis (self, QString whatsThis) |
QString | text (self) |
QString | toolTip (self) |
QString | whatsThis (self) |
Static Methods |
| assign (QPushButton button, KGuiItem item) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QString |
text, |
|
|
QString |
iconName=QString(), |
|
|
QString |
toolTip=QString(), |
|
|
QString |
whatsThis=QString() |
|
) |
|
|
|
__init__ |
( |
self, |
|
|
|
QString |
text, |
|
|
QIcon |
icon, |
|
|
QString |
toolTip=QString(), |
|
|
QString |
whatsThis=QString() |
|
) |
|
|
|
__init__ |
( |
self, |
|
|
|
KGuiItem |
rhs |
|
) |
|
|
|
QString iconName |
( |
|
self ) |
|
QString plainText |
( |
|
self ) |
|
setEnabled |
( |
self, |
|
|
|
bool |
enable |
|
) |
|
|
|
setIcon |
( |
self, |
|
|
|
QIcon |
iconset |
|
) |
|
|
|
setIconName |
( |
self, |
|
|
|
QString |
iconName |
|
) |
|
|
|
setText |
( |
self, |
|
|
|
QString |
text |
|
) |
|
|
|
setToolTip |
( |
self, |
|
|
|
QString |
tooltip |
|
) |
|
|
|
setWhatsThis |
( |
self, |
|
|
|
QString |
whatsThis |
|
) |
|
|
|
QString whatsThis |
( |
|
self ) |
|
Static Method Documentation
assign |
( |
QPushButton |
button, |
|
|
KGuiItem |
item |
|
) |
|
|
|