Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson19-diy2
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
e830a9d2
authored
Jun 08, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
41eaa8df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
client.py
client.py
View file @
e830a9d2
...
...
@@ -29,10 +29,12 @@ class Note():
# 设置初始y坐标为20
# 使用for循环遍历列表的文字
for
i
in
alist
:
# 使用create_text()方法参数为x,y坐标为(40,y) 文字text 字体font=("宋体",11) 对其方式anchor为W 字体颜色fill为红色
self
.
canvas
.
create_text
(
40
,
self
.
y
,
text
=
i
,
font
(
"宋体"
,
11
),
anchor
=
W
,
fill
=
'#FF9900 '
)
# 循环一次y坐标自增20
self
.
y
+=
20
def
get_info
(
self
):
...
...
@@ -40,4 +42,8 @@ class Note():
app
=
Note
()
app
.
show
()
app
.
root
.
mainloop
()
\ No newline at end of file
app
.
root
.
mainloop
()
self
.
canvas
.
create_text
(
40
,
self
.
y
,
text
=
i
,
font
(
"宋体"
,
11
),
anchor
=
W
,
fill
=
'#FF9900 '
)
self
.+
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