From 0a1f5159371da80454a0a807cace7ba77b03aec5 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Wed, 27 Jan 2021 11:57:18 -0500 Subject: [PATCH] Remove unused program --- DemoPrograms/TutorialCPUUtilization.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 DemoPrograms/TutorialCPUUtilization.py diff --git a/DemoPrograms/TutorialCPUUtilization.py b/DemoPrograms/TutorialCPUUtilization.py deleted file mode 100644 index f868fd9e..00000000 --- a/DemoPrograms/TutorialCPUUtilization.py +++ /dev/null @@ -1,23 +0,0 @@ -import PySimpleGUI as sg -import psutil - -# Usage of PSG and cpu data - -layout = [[sg.Text('CPU Utilization')], - [sg.Text('', size=(8, 2), font='Helvetica 20', - justification='center', key='-text-')], - [sg.Exit()]] - -window = sg.Window('CPU Meter', layout) - -while True: - event, values = window.ReadNonBlocking() - - if event == 'Exit' or values is None: - break - - cpu_percent = psutil.cpu_percent(interval=1) - - window['-text-'].update(f'CPU {cpu_percent:02.0f}%') - -window.close()