Realtime CPU monitor using PyGame

Here’s a realtime CPU monitor using PyGame: ”’ Author: https://github.com/Abdur-rahmaanJ Instructions: pip install psutil hooman==0.3.6 ”’ from hooman import Hooman import psutil import pygame window_width, window_height = 500, 500 hapi = Hooman(window_width, window_height) bg_col = (255, 255, 255) loop_var = 0 time_unit = 0 graph_data = [] hapi.stroke_size(3) hapi.stroke(hapi.color[‘black’]) while hapi.is_running: loop_var += 1 hapi.background(bg_col) …

Realtime CPU monitor using PyGame Read More »