个人博客:一个人的世界
# 窗口# qq两个字import tkinter as tkwin = 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)# 输入 Entryname = 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()