示例#1
0
 def set_default():
     confirm_msgb = msb.askyesno(title=None, message="Are you sure?")
     if confirm_msgb == True:
         rs.overclock_arm_freq("1500")
         rs.overclock_gpu_freq("500")
         rs.overclock_over_voltage("")
         print("It works!")
         rs.reboot()
     else:
         importlib.reload(rs)
         master.destroy()
示例#2
0
		def confirum_push():
			print(rs.push_state1)
			print(rs.push_state2)
			print(rs.push_state3)
			confirm_msgb = msb.askyesno(title=None, message="Are you sure?")
			if confirm_msgb == True:
				if arm_freq_entry.get() != "" and gpu_freq_entry.get() != "" and over_voltage_entry.get() != "" and rs.push_state1 == True and rs.push_state2 == True and rs.push_state3 == True:
					rs.overclock_arm_freq(arm_freq_entry.get())
					rs.overclock_gpu_freq(gpu_freq_entry.get())
					rs.overclock_over_voltage(over_voltage_entry.get())
					print("It works!")
					rs.reboot()
				else:
					msb.showinfo(title="Warning", message="You don't set all values!")
			else:
				importlib.reload(rs)
				master.destroy()