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
c24a87ce
authored
Jul 30, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
857f0174
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
my_window.py
sa.py
my_window.py
View file @
c24a87ce
import
tkinter
import
tkinte
def
re
(
):
b
=
e1
.
get
()
c
=
e2
.
get
()
d
=
e3
.
get
()
with
open
(
'pp.txt'
,
'w'
,
encoding
=
utf
-
8
)
as
k
:
k
.
append
(
b
)
k
.
append
(
c
)
print
(
b
,
c
)
root
=
tkinter
.
Tk
()
root
=
tkinter
.
Tk
()
root
.
title
(
'wechat'
)
root
.
title
(
'wechat'
)
root
.
geometry
(
'480x360+450+150'
)
root
.
geometry
(
'480x360+450+150'
)
...
@@ -6,8 +15,17 @@ e=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18)
...
@@ -6,8 +15,17 @@ e=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18)
e
.
place
(
x
=
140
,
y
=
150
)
e
.
place
(
x
=
140
,
y
=
150
)
e1
=
tkinter
.
Entry
(
root
,
show
=
'*'
,
font
=
(
'Ink free'
,
14
),
bg
=
'lightblue'
,
width
=
18
)
e1
=
tkinter
.
Entry
(
root
,
show
=
'*'
,
font
=
(
'Ink free'
,
14
),
bg
=
'lightblue'
,
width
=
18
)
e1
.
place
(
x
=
140
,
y
=
100
)
e1
.
place
(
x
=
140
,
y
=
100
)
e2
=
tkinter
.
Entry
(
root
,
show
=
'
*
'
,
font
=
(
'Ink free'
,
14
),
bg
=
'lightblue'
,
width
=
18
)
e2
=
tkinter
.
Entry
(
root
,
show
=
''
,
font
=
(
'Ink free'
,
14
),
bg
=
'lightblue'
,
width
=
18
)
e2
.
place
(
x
=
140
,
y
=
50
)
e2
.
place
(
x
=
140
,
y
=
50
)
labb
=
tkinter
.
Label
(
root
,
text
=
'嗨嗨嗨,来了啊'
,
font
=
(
'宋体'
,
18
),
fg
=
'black'
,
ba
=
'pink'
,
width
=
40
,
height
=
1
)
labb
=
tkinter
.
Label
(
root
,
text
=
'嗨嗨嗨,来了啊'
,
font
=
(
'宋体'
,
18
),
fg
=
'black'
,
ba
=
'pink'
,
width
=
40
,
height
=
1
)
labb
.
place
(
x
=
0
,
y
=
0
)
labb
.
place
(
x
=
0
,
y
=
0
)
lb
=
tkinter
.
Label
(
root
,
text
=
'ID'
,
font
=
(
'宋体'
,
18
),
fg
=
'black'
,
width
=
2
,
height
=
1
)
lb
.
place
(
x
=
100
,
y
=
50
)
lb
=
tkinter
.
Label
(
root
,
text
=
'linkword'
,
font
=
(
'宋体'
,
18
),
fg
=
'black'
,
width
=
8
,
height
=
1
)
lb
.
place
(
x
=
30
,
y
=
100
)
lb
=
tkinter
.
Label
(
root
,
text
=
'mlinkword'
,
font
=
(
'宋体'
,
18
),
fg
=
'black'
,
width
=
8
,
height
=
1
)
lb
.
place
(
x
=
30
,
y
=
150
)
s
=
tkinter
.
Button
(
root
,
text
=
'Enter'
,
font
=
(
'宋体'
,
18
)
,
fg
=
'black'
,
bg
=
'lightblue'
,
width
=
40
,
height
=
2
,
command
)
s
.
place
(
x
=
50
,
y
=
10
)
root
.
resizable
(
width
=
False
,
height
=
False
)
root
.
mainloop
()
root
.
mainloop
()
sa.py
View file @
c24a87ce
...
@@ -3,7 +3,10 @@
...
@@ -3,7 +3,10 @@
#tkinter模块
#tkinter模块
#rool=tkinter.Tk()设窗口
#rool=tkinter.Tk()设窗口
#screen.geometry(widthxheight+x+y)设置窗口大小
#screen.geometry(widthxheight+x+y)设置窗口大小
#tkinter.Entry(screen,show=
*
,font=('wordshape',size),bg='color',width=size)显示文本框
#tkinter.Entry(screen,show=,font=('wordshape',size),bg='color',width=size)显示文本框
x
=
,
y
=
)
#place(
x
=
,
y
=
)
#place(
#tkinter.Label(screen,text'用户名:',font,fg,bg,width,height)
#tkinter.Label(screen,text'用户名:',font,fg,bg,width,height)
#place(x,y)
#place(x,y)
\ No newline at end of file
#root.resizable(width=False,height=False)拉伸
#tkinter.Button(screen,text,font,fg,bg,width,height,command)
#Entry.get
\ 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