Remove unused program

This commit is contained in:
PySimpleGUI 2021-01-27 11:57:18 -05:00
parent 25e7f0364b
commit 0a1f515937
1 changed files with 0 additions and 23 deletions

View File

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