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

Function Canvas_

GANCode/mainWindow.py:27–35  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

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

Callers 2

set_BackGroundFunction · 0.70
loadModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected