(image_path1,image_path2, root)
| 81 | tkImage1='' |
| 82 | tkImage2='' |
| 83 | def set_BackGround(image_path1,image_path2, root): |
| 84 | global tkImage1 |
| 85 | global tkImage2 |
| 86 | canvas0,canvas1 = Canvas_(root) |
| 87 | img1 = cv2.imread(image_path1) |
| 88 | img2 = cv2.imread(image_path2) |
| 89 | tkImage1 = showImage(img1) |
| 90 | tkImage2 = showImage(img2) |
| 91 | canvas0.create_image(0, 0, anchor='nw', image=tkImage1) |
| 92 | canvas1.create_image(0, 0, anchor='nw', image=tkImage2) |
| 93 | |
| 94 | #选择要生成的图像文件 |
| 95 | imagePath={"filename": ""}#保存点击事件之后的图片路径 |
no test coverage detected