当前位置: 首页 > 工具软件 > Python QQ > 使用案例 >

用Python模拟QQ界面之QQ登录界面的奥秘

卓雅达
2023-12-01

个人博客:一个人的世界

# 窗口
# 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()
 类似资料: