Beispiel #1
0
 def refresh():
     ttext = rs.reftemp()
     ptext = rs.refusage()
     mtext = rs.refmem()
     #dtext = str(rs.get_disk_percent())
     #dtext = "CPU usage " + rs.cpu_usagex +" MHz"
     memory_use_label2.configure(text=mtext + "/100%")
     actual_cpu_temp_label2.configure(text=ttext)
     actual_cpu_usage_label2.configure(text=ptext)
     #disk_use_label.configure(text = "Disk space usage" +dtext+"/100%")
     master.after(1000, refresh)
Beispiel #2
0
		def refresh():
			#for x in th.window_list:
			#	print(x.__class__)
			ttext = rs.reftemp()
			ptext = rs.refusage()
			mtext = rs.refmem()
			gtext = rs.reftemp2()
			gputext = rs.refgpu()
			#dtext = str(rs.get_disk_percent())
			#dtext = "CPU usage " + rs.cpu_usagex +" MHz"
			memory_use_label2.configure(text = mtext + "/100%")
			actual_cpu_temp_label2.configure(text = ttext)
			actual_cpu_usage_label2.configure(text = ptext)
			actual_gpu_temp_label2.configure(text = gtext)
			actual_gpu_usage_label2.configure(text = gputext)
			master.after(1000, refresh)