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

Function Canvas_

DCGAN/mainWindow.py:28–36  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

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

Callers 2

set_BackGroundFunction · 0.70
loadModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected