Commit 547b91fe by BellCodeEditor

save project

parent 7c415780
Showing with 18 additions and 3 deletions
import tkinter as tk
root = tk.Tk()
root.title('标题')
root.geometry('420x300')
root.mainloop()
\ No newline at end of file
root.geometry('400x320+500+300')
en1 = tk.Entry(root,show = None,width = 18)
en2 = tk.Entry(root,show = '*',width = 18)
en3 =tk.Entry(root,show = '*',width = 18)
lb = tk.Label(root,text = '你好,请输入账号密码!',fg = 'black',bg = 'green',width = 40,height = 2)
#初始化
en1.place(x = 140,y = 140)
en2.place(x = 140,y = 200)
en3.place(x = 140,y = 260)
lb.place(x=0,y=0)
#设置位置
en1.pack()
en2.pack()
en3.pack()
lb.pack()
#放置
root.mainloop()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment