#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter as tk
import os
def window_display1(var, window):
def show1():
y = "adb shell cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq"
lit = os.popen(y).read().strip()
# print(lit)
var.set(lit)
b1 = tk.Button(window, text='lit', font=('Arial', 12), width=10, height=1, command=show1) # 在窗口界面设置放置Button按键
b1.pack()
def show2():
y = "adb shell cat /sys/devices/system/cpu/cpufreq/policy4/scaling_cur_freq"
big = os.popen(y).read().strip()
# print(big)
var.set(big)
b1 = tk.Button(window, text='big', font=('
button标签设置隐藏和显示_Tkinter按钮显示脚本
最新推荐文章于 2022-11-28 09:49:41 发布