demo
import tkinter as tk from tkinter import ttk ‘’‘松耦合’’’
弹窗
class MyDialog(tk.Toplevel): def init(self, phase): super().init() self.title(‘Unit Test’) # 弹窗界面 self.phase = phase self.setup_UI()
def setup_UI(self):
WIDTH = 300
HEIGHT = 150
screenwidth = self.winfo_screenwidth()
screenheight = self.winfo_screenheight()
size_geo = '%dx%d+%d+%d' % (WIDTH, HEIGHT, (screenwidth - WIDTH) / 2, (screenheight - HEIGHT
demo最先出现在Python成神之路。
共有 0 条评论