Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson17-diy1
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
55e2134d
authored
Dec 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
328b62c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
my_window.py
新建 文本文档.txt
my_window.py
View file @
55e2134d
import
tkinter
import
tkinter
rook
=
tkinter
.
Tk
()
rook
=
tkinter
.
Tk
()
rook
.
title
(
'注册'
)
rook
.
title
(
'注册'
)
def
wod
():
name
=
e1
.
get
mima
=
e2
.
get
rook
.
geometry
(
'400x320+500+300'
)
rook
.
geometry
(
'400x320+500+300'
)
e1
=
tkinter
.
Entry
(
rook
,
show
=
None
,
font
=
(
'宋体'
,
14
),
bg
=
'light grey'
,
width
=
18
)
e1
=
tkinter
.
Entry
(
rook
,
show
=
None
,
font
=
(
'宋体'
,
14
),
bg
=
'light grey'
,
width
=
18
)
e1
.
place
(
x
=
140
,
y
=
80
)
e1
.
place
(
x
=
140
,
y
=
80
)
rook
.
resizable
(
width
=
False
,
height
=
False
)
e2
=
tkinter
.
Entry
(
rook
,
show
=
'*'
,
font
=
(
'宋体'
,
14
),
bg
=
'light grey'
,
width
=
18
)
e2
=
tkinter
.
Entry
(
rook
,
show
=
'*'
,
font
=
(
'宋体'
,
14
),
bg
=
'light grey'
,
width
=
18
)
e2
.
place
(
x
=
140
,
y
=
140
)
e2
.
place
(
x
=
140
,
y
=
140
)
e3
=
tkinter
.
Entry
(
rook
,
show
=
'*'
,
font
=
(
'宋体'
,
14
),
bg
=
'light grey'
,
width
=
18
)
e3
=
tkinter
.
Entry
(
rook
,
show
=
'*'
,
font
=
(
'宋体'
,
14
),
bg
=
'light grey'
,
width
=
18
)
...
@@ -16,5 +20,7 @@ lab3=tkinter.Label(rook,text=('密码'),font=('宋体',12),fg='black',width=5)
...
@@ -16,5 +20,7 @@ lab3=tkinter.Label(rook,text=('密码'),font=('宋体',12),fg='black',width=5)
lab3
.
place
(
x
=
80
,
y
=
140
)
lab3
.
place
(
x
=
80
,
y
=
140
)
lab4
=
tkinter
.
Label
(
rook
,
text
=
(
'再次输入密码'
),
font
=
(
'宋体'
,
12
),
fg
=
'black'
,
width
=
14
)
lab4
=
tkinter
.
Label
(
rook
,
text
=
(
'再次输入密码'
),
font
=
(
'宋体'
,
12
),
fg
=
'black'
,
width
=
14
)
lab4
.
place
(
x
=
10
,
y
=
200
)
lab4
.
place
(
x
=
10
,
y
=
200
)
b1
=
tkinter
.
Button
(
rook
,
text
=
(
'提交'
),
font
=
(
'宋体'
,
12
),
bg
=
'green'
,
command
=
wod
)
b1
.
place
(
x
=
150
,
y
=
270
)
rook
.
mainloop
()
rook
.
mainloop
()
新建 文本文档.txt
0 → 100644
View file @
55e2134d
++ "b/\346\226\260\345\273\272 \346\226\207\346\234\254\346\226\207\346\241\243.txt"
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