MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / Canvas_

Function Canvas_

SRGAN/mainWindows.py:45–60  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

43
44
45def 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
62def showImage(frame):
63 """

Callers 3

set_BackGroundFunction · 0.70
selectFilenameFunction · 0.70
loadModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected