|
cut 3.3.0
|
QeCpu is a small text based widget that presents the running process cpu usage. More...
Public Member Functions | |
| __init__ (self, parent=None) | |
| Initializes the QeCpu. | |
| calculate_cpu (self) | |
| Slot that is triggered every second. | |
| cpu_percent (self) | |
| Accesor method for the cpu value. | |
| dict | getQtDesignerPluginInfo (cls) |
| Provides Qt Designer with widget information. | |
QeCpu is a small text based widget that presents the running process cpu usage.
It uses a QTimer to automatically update every second.
| qecpu.QeCpu.__init__ | ( | self, | |
| parent = None ) |
Initializes the QeCpu.
Please set parent to a suitable paret wigdet.
| qecpu.QeCpu.calculate_cpu | ( | self | ) |
Slot that is triggered every second.
It calculates the cpu value and emits the signal. Also requests an update on the widget's graphical representation.
| dict qecpu.QeCpu.getQtDesignerPluginInfo | ( | cls | ) |
Provides Qt Designer with widget information.
Return: dict Dictionary with values for keys: icon, module, container, tool_tip and xml.