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