cut 3.3.0
Loading...
Searching...
No Matches
qecpu.QeCpu Class Reference

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.
 

Detailed Description

QeCpu is a small text based widget that presents the running process cpu usage.

It uses a QTimer to automatically update every second.

Constructor & Destructor Documentation

◆ __init__()

qecpu.QeCpu.__init__ ( self,
parent = None )

Initializes the QeCpu.

Please set parent to a suitable paret wigdet.

Member Function Documentation

◆ calculate_cpu()

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.

◆ getQtDesignerPluginInfo()

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.


The documentation for this class was generated from the following file: