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
bc1aee5d
authored
Jul 22, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
1648e156
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
client.py
smy.png
smyyp.png
client.py
View file @
bc1aee5d
...
...
@@ -10,7 +10,7 @@ class Note():
self
.
root
.
geometry
(
'300x340+1000+200'
)
self
.
root
.
title
(
"我的便签-待办事项"
)
self
.
root
.
resizable
(
width
=
True
,
height
=
False
)
# True可以拉伸,False不能拉伸
self
.
bg_img
=
tkinter
.
PhotoImage
(
file
=
"
bg
.png"
)
self
.
bg_img
=
tkinter
.
PhotoImage
(
file
=
"
smyyp
.png"
)
def
show
(
self
):
# 画布
...
...
@@ -27,6 +27,10 @@ class Note():
bg
=
"lightblue"
,
width
=
5
,
command
=
self
.
get_info
)
self
.
but
.
place
(
x
=
240
,
y
=
305
)
sely
.
y
=
20
for
info
in
alist
:
self
.
canvas
.
create_text
(
40
,
self
.
y
,
text
=
info
,
font
=
(
"宋体"
,
11
),
anchor
=
W
,
fill
=
"#FF9900"
)
self
.
y
+=
30
def
get_info
(
self
):
pass
...
...
smy.png
0 → 100644
View file @
bc1aee5d
459 KB
smyyp.png
0 → 100644
View file @
bc1aee5d
118 KB
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