Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson12_diy4
This project
Loading...
Sign in
Toggle navigation
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
948a8f17
authored
Dec 03, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
032dc1b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
lesson12-diy4.py
lesson12-diy4.py
View file @
948a8f17
import
tkinter
def
register
():
name
=
e1
.
get
()
password1
=
e2
.
get
()
password1
=
e2
.
get
()
root
=
tkinter
.
tk
()
root
.
title
(
"注册"
)
root
.
geometry
(
"400x320+500+300"
)
print
(
"用户输入的信息为:"
,
name
,
password2
)
e1
=
tkinter
.
entry
(
root
,
show
=
none
,
font
=
(
'宋体'
,
14
ligh
))
bg
=
"t grey"
,
width
=
18
)
e1
.
place
(
x
=
140
,
y
=
140
)
...
...
@@ -13,3 +17,7 @@ e2=tkintr.entry(root,show='*',font=('宋体',14),width=18)
e2
.
place
(
x
=
140
,
y200
)
button
=
tkinter
.
button
(
root
,
text
=
'提交'
,
bg
=
"lightgreen"
,
width
=
15
,
command
=
register
button
.
place
(
x
=
150
,
y
=
250
)
root
.
mainloop
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment