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()