Remove unused program
This commit is contained in:
parent
25e7f0364b
commit
0a1f515937
|
@ -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()
|
Loading…
Reference in New Issue