Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / level3-lesson17-diy2

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit dfa13b51 authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent ff1d44a1 c97682l1550p256a15091/wx896631
Hide whitespace changes
Inline Side-by-side
Showing with 7 additions and 0 deletions
  • my_window.py
my_window.py
View file @ dfa13b51
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
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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