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
e6824d0e
authored
Dec 12, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
0651e310
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
my_window.py
my_window.py
View file @
e6824d0e
import
tkinter
a
=
tkinter
.
Tk
()
#创建窗口对象
a
.
title
(
"用户注册"
)
#给这个窗口设置标题
a
.
geometry
(
"400x300+600+300"
)
#设置窗口大小及位置
c1
=
tkinter
.
Entry
(
a
,
show
=
None
,
font
=
(
'宋体'
,
14
),
bg
=
"light blue"
,
width
=
18
)
c1
.
place
(
x
=
80
,
y
=
100
)
c2
=
tkinter
.
Entry
(
a
,
show
=
"*"
,
font
=
(
'宋体'
,
14
),
bg
=
"light blue"
,
width
=
18
)
c2
.
place
(
x
=
160
,
y
=
140
)
c3
=
tkinter
.
Entry
(
a
,
show
=
"*"
,
font
=
(
'宋体'
,
14
),
bg
=
"light blue"
,
width
=
18
)
c3
.
place
(
x
=
160
,
y
=
180
)
t1
=
tkinter
.
Label
(
a
,
text
=
"您好,请填写信息"
)
t1
.
place
(
x
=
160
,
y
=
50
)
t2
=
tkinter
.
Label
(
a
,
text
=
"您好,请填写信息"
)
t2
.
place
(
x
=
80
,
y
=
50
)
a
.
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