Commit c7e29662 by BellCodeEditor

save project

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