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成神之路

版权声明:
作者:倾城
链接:https://www.techfm.club/p/25795.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>