RTC Toolkit  2.0.0
Public Member Functions | Static Public Attributes | List of all members
gui.qecpu.QeCpu Class Reference

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

Inheritance diagram for gui.qecpu.QeCpu:

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)
 

Detailed Description

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

It uses a QTimer to automatically update every second.

Constructor & Destructor Documentation

◆ __init__()

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

Initializes the QeCpu.

   Please set parent to a suitable paret wigdet.

Member Function Documentation

◆ calculate_cpu()

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.

◆ cpu_percent()

def gui.qecpu.QeCpu.cpu_percent (   self)

Accesor method for the cpu value.

Member Data Documentation

◆ cpu_percent_changed

gui.qecpu.QeCpu.cpu_percent_changed = Signal(float)
static

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