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
547b91fe
authored
Jun 02, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7c415780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
my_window.py
my_window.py
View file @
547b91fe
import
tkinter
as
tk
root
=
tk
.
Tk
()
root
.
title
(
'标题'
)
root
.
geometry
(
'420x300'
)
root
.
mainloop
()
\ No newline at end of file
root
.
geometry
(
'400x320+500+300'
)
en1
=
tk
.
Entry
(
root
,
show
=
None
,
width
=
18
)
en2
=
tk
.
Entry
(
root
,
show
=
'*'
,
width
=
18
)
en3
=
tk
.
Entry
(
root
,
show
=
'*'
,
width
=
18
)
lb
=
tk
.
Label
(
root
,
text
=
'你好,请输入账号密码!'
,
fg
=
'black'
,
bg
=
'green'
,
width
=
40
,
height
=
2
)
#初始化
en1
.
place
(
x
=
140
,
y
=
140
)
en2
.
place
(
x
=
140
,
y
=
200
)
en3
.
place
(
x
=
140
,
y
=
260
)
lb
.
place
(
x
=
0
,
y
=
0
)
#设置位置
en1
.
pack
()
en2
.
pack
()
en3
.
pack
()
lb
.
pack
()
#放置
root
.
mainloop
()
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