RTC Toolkit
2.0.0
|
QeCpu is a small text bsaed widget that presents the running process cpu usage. More...
Public Member Functions | |
def | __init__ (self, parent=None) |
Initializes the QeCpu. More... | |
def | calculate_cpu (self) |
Slot that is triggered every second. More... | |
def | cpu_percent (self) |
Accesor method for the cpu value. More... | |
Static Public Attributes | |
cpu_percent_changed = Signal(float) | |
QeCpu is a small text bsaed widget that presents the running process cpu usage.
It uses a QTimer to automatically update every second.
def gui.qecpu.QeCpu.__init__ | ( | self, | |
parent = None |
|||
) |
Initializes the QeCpu.
Please set parent to a suitable paret wigdet.
def gui.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.
def gui.qecpu.QeCpu.cpu_percent | ( | self | ) |
Accesor method for the cpu value.
|
static |