Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson20-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
dae7630e
authored
Feb 25, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d342feb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
my_client.py
quiz.py
my_client.py
View file @
dae7630e
import
tkinter
............
import
tkinter
from
tkinter
import
*
alist
=
[
"星期六下午打篮球"
,
"星期天下午和小美一起看电影"
,
...
...
@@ -27,11 +27,22 @@ class Note(): # 便签、笔记
self
.
but
.
place
(
x
=
240
,
y
=
305
)
# 展示所有的文字
self
.
y
=
20
self
.
val
=
0
for
info
in
alist
:
self
.
canvas
.
create_text
(
40
,
self
.
y
,
text
=
info
,
font
=
(
"宋体"
,
11
),
anchor
=
W
,
fill
=
'#FF9900'
)
self
.
select
=
tkinter
.
Radiobutton
(
self
.
canvas
,
Image
=
self
.
box
,
value
=
self
.
vil
,
Variable
=
self
.
v
,
width
=
25
,
height
=
15
,
borderwidth
=
0
)
self
.
select
.
place
(
x
=-
20
,
y
=
self
.
y
-
10
)
self
.
val
+=
1
self
.
y
+=
30
def
femove
(
self
)
num
=
self
.
v
.
get
()
alist
.
pop
(
num
)
self
.
canvas
def
get_info
(
self
):
info
=
self
.
ent
.
get
()
self
.
ent
.
delete
(
"0"
,
END
)
...
...
@@ -39,6 +50,10 @@ class Note(): # 便签、笔记
alist
.
append
(
info
)
self
.
canvas
.
create_text
(
40
,
self
.
y
,
text
=
info
,
font
=
(
"宋体"
,
11
),
anchor
=
W
,
fill
=
'#FF9900'
)
self
.
select
=
tkinter
.
Radiobutton
(
self
.
canvas
,
Image
=
self
.
box
,
value
=
self
.
vil
,
Variable
=
self
.
v
,
width
=
25
,
height
=
15
,
borderwidth
=
0
)
self
.
select
.
place
(
x
=-
20
,
y
=
self
.
y
-
10
)
self
.
val
+=
1
self
.
y
+=
30
...
...
quiz.py
View file @
dae7630e
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