这里使用了tkinter来进行窗口模拟,方便快捷~无需额外安装库~大家可以参考:python基于tkinter做测手速游戏
# 窗口 # qq两个字 import tkinter as tk win = tk.Tk() win.geometry('480x390') # win.title('') label = tk.Label( win, text='QQ', fg='#FFFFFF', bg='#0000FF', height=2, width=5, font=(None, 19), ) label.place(x=0, y=0) # 输入 Entry name = tk.StringVar() password = tk.StringVar() e1 = tk.Entry( win, show='', font=(None, 30), textvariable = name ) e1.place(x=120, y=100, width=250, height=50) e2 = tk.Entry( win, show='飒', font=(None, 30), textvariable = password ) e2.place(x=120, y=170, width=250, height=50) # 检查按钮 ck1 = tk.Checkbutton( win, text = "记住密码" ) ck1.place(x=120,y=240) # 检查按钮 ck2 = tk.Checkbutton( win, text = "自动登陆", state="disabled", # command = 函数 ) ck2.select() ck2.place(x=200,y=240) win.mainloop()
更多精彩内容