(root)
| 43 | |
| 44 | |
| 45 | def Canvas_(root): |
| 46 | # 创建画布 |
| 47 | canvas0 = tkinter.Canvas(root, bg='white', width=img_width, height=img_height) |
| 48 | canvas0.place(x=50, y=50) |
| 49 | # 创建画布 |
| 50 | canvas1 = tkinter.Canvas(root, bg='white', width=img_width, height=img_height) |
| 51 | canvas1.place(x=300, y=50) |
| 52 | # 创建标签 |
| 53 | label1 = tkinter.Label(root, text='原始低分辨率图', font=('黑体', 13), width=30, height=1) |
| 54 | # `anchor=nw`则是把图片的左上角作为锚定点 |
| 55 | label1.place(x=15, y=20, anchor='nw') |
| 56 | # 创建标签 |
| 57 | label2 = tkinter.Label(root, text='转换高分辨率图', font=('黑体', 13), width=25, height=1) |
| 58 | # `anchor=nw`则是把图片的左上角作为锚定点 |
| 59 | label2.place(x=280, y=20, anchor='nw') |
| 60 | return [canvas0,canvas1] |
| 61 | |
| 62 | def showImage(frame): |
| 63 | """ |
no outgoing calls
no test coverage detected