Commit 81f4dceb by BellCodeEditor

auto save

parent 8daf4893
Showing with 10 additions and 0 deletions
import tkinter import tkinter
def register():
name = e1.get()
password1 = e2.get()
password2 = e3.get()
print("用户信息为:".name,passorld1,password2)
# 建立窗口对象 # 建立窗口对象
root = tkinter.Tk() root = tkinter.Tk()
root.title("注册") # 设置窗口标题 root.title("注册") # 设置窗口标题
...@@ -22,5 +28,9 @@ lab.place(x=0,y=0) ...@@ -22,5 +28,9 @@ lab.place(x=0,y=0)
lad1 = tkinter.Label(coor,ext='用户名',font=('宋体'15) lad1 = tkinter.Label(coor,ext='用户名',font=('宋体'15)
lad2.place(x=70,y=140)
lad3 = tkinter.Label(root,,)
lad3.place(x=30,y=200)
# 保持窗口监听,进入消息循环 # 保持窗口监听,进入消息循环
root.mainloop() 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