import tkinter as tk
myWindow = tk.Tk()
myWindow.title("博仁牌qq")
myWindow.geometry("500x600")
la = tk.Label(
myWindow,
text="QQ",
font=(None, 30),
bg="#1E90FF",
fg='white',
width=30,
height=2,
)
la.pack()
# Entry 输入 try
# 账号
e1 = tk.Entry(
myWindow,
show="",
font=(None, 30)
)
e1.pack()
e2 = tk.Entry(
myWindow,
show="*", # show 秀 展示
font=(None,30)
)
e2.pack()
# 复选框:check 检查 button 按钮
c1 = tk.Checkbutton(
myWindow,
text="记住密码",
font=(None, 20),
)
# c1.pack()
# place放 select 选择 state 状态 disabled 不能改变
c1.place(x =50,y=200 )
c2 = tk.Checkbutton(
myWindow,
text= "自动登陆",
font= (None,20),
state = "disabled"
)
c2.select()
c2.place(x=250,y=200)
def denglu():
# tk.messagebox.showinfo("开始")
pass
dl = tk.Button(
text= "登陆",
font= (None,30),
bg ="#1a2b3c",
fg ="#5cfecc",
width =10,
height =5,
command = denglu
)
dl.place(x= 150,y=300)
myWindow.mainloop()
boren -学习制作QQ登陆界面
最新推荐文章于 2020-06-26 20:51:40 发布