Commit c7e29662 by BellCodeEditor

save project

parent 83debd9f
Showing with 3 additions and 4 deletions
......@@ -2,8 +2,7 @@ import tkinter
def h():
name=e1.get()
j=e2.get()
k=e3.get()
print('提交了',name,j,k)
print('提交了','名字:'name,'密码:',j)
# 建立窗口对象
root = tkinter.Tk()
root.title("注册") # 设置窗口标题
......@@ -13,10 +12,10 @@ root.resizable(width=False,height=False)
e1 = tkinter.Entry(root,show=None,font=('宋体',14),bg="blue",width=18) # 显示成明文形式
e1.place(x=140, y=80)
# 密码输入框,左上角坐标:x:140,y:140
e2 = tkinter.Entry(root,show='?',font=('宋体',14),bg="yellow",width=18)
e2 = tkinter.Entry(root,show=' ',font=('宋体',14),bg="yellow",width=18)
e2.place(x=140, y=140)
# 确认密码输入框,左上角坐标:x:140,y:200
e3 = tkinter.Entry(root,show='?',font=('宋体',14),bg="red",width=18)
e3 = tkinter.Entry(root,show=' ',font=('宋体',14),bg="red",width=18)
e3.place(x=140, y=200)
# 注册界面上的文字标签
......
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