# 模拟qq登录界面
import tkinter
import gg
p = tkinter.Tk()
p.geometry("666x460")
p.title("qq登录界面")
# 输入账号和输入密码;Entry 输入
e1 = tkinter.Entry(
p,
show =None,
font = (None,30),
)
e1.pack() # 放置窗口
qq = tkinter.Entry(
p,
show = "*", # 展示
font = (None,30),
)
qq.pack()
def sing():
gg.ert(500, 300, 114)
# check Button 选择按钮
c1 = tkinter.Checkbutton(
p,
text = "记住密码",
font = (None,30),
fg = "blue",
# command = sing
# state = 'disable'
)
# c1.select()
# c1.pack()
c1.place(x=0,y=100)
KFC = tkinter.Checkbutton(
p,
text = "自动登录",
font = (None,30),
fg = "blue",
state = 'disable' # 状态--》不能修改
)
KFC.select()
# KFC.pack()
KFC.place(x=300,y=100)
b = tkinter.Button(
p,
text="登录",
bg="#FF1493",
fg="white",
font=(None, 20),
width=10,
height=2,
)
# b.pack()
b.place(x=333,y=200)
p.mainloop()
Deqin -学习qq登录界面
最新推荐文章于 2020-09-13 13:44:23 发布