(root)
| 32 | |
| 33 | |
| 34 | def Canvas_(root): |
| 35 | # 创建画布 |
| 36 | canvas = tkinter.Canvas(root, bg='white', width=img_width, height=img_height) |
| 37 | canvas.place(x=111, y=50) |
| 38 | # 创建标签 |
| 39 | label = tkinter.Label(root, text='随机生成数字', font=('黑体', 14), width=15, height=1) |
| 40 | # `anchor=nw`则是把图片的左上角作为锚定点 |
| 41 | label.place(x=190, y=20, anchor='nw') |
| 42 | return canvas |
| 43 | |
| 44 | def showImage(frame): |
| 45 | """ |
no outgoing calls
no test coverage detected