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

Function Canvas_

fc-CGANCode/mainWindow.py:34–42  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

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

Callers 2

set_BackGroundFunction · 0.70
loadModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected