Commit dfa13b51 by BellCodeEditor

auto save

parent ff1d44a1
Showing with 7 additions and 0 deletions
import tkinter
def register():
root = tkinter.Tk() # 创建窗口
root.title('注册') # 标题
root.geometry('400x320+500+300') # 长×宽+x坐标+y坐标
screen_name = tkinter.Entry(root,show='*',font=('宋体',14),bg='light grey',width=18) # 设置名字窗口
screen_name.place(x=140,y=80) # 名字窗口的坐标
screen_number = tkinter.Entry(root,show='*',font=('宋体',14),bg='light grey',width=18) # 设置密码窗口
screen_number.place(x=140,y=140) # 密码窗口的坐标
screen_numbers = tkinter.Entry(root,show='*',font=('宋体',14),bg='light grey',width=18) # 设置确认密码窗口
screen_numbers.place(x=140,y=200) # 确认密码的坐标
lab = tkinter.Label(root, text='您好!请填写注册信息', font=('宋体', 15),fg="black",width=40, height=2,bg="green") # 设置提示
lab.place(x=0,y=0) # 提示坐标
text_name = tkinter.Label(root, text='名字:', font=('宋体', 15),fg="black") # 名字提示
......@@ -18,4 +22,6 @@ text_number.place(x=50,y=140) # 提示位置
text_numbers = tkinter.Label(root, text='确认密码:', font=('宋体', 15),fg="black") # 确认密码
text_numbers.place(x=30,y=200) # 提示位置
button = tkinter.Button()
root.mainloop() # 保持运行
\ No newline at end of file
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