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

Function ButtonImage

Code/mainWindows.py:151–162  ·  view source on GitHub ↗
(model1,model2,root)

Source from the content-addressed store, hash-verified

149
150#点击生成图片按钮
151def ButtonImage(model1,model2,root):
152 # root.withdraw() # 仅显示对话框,隐藏主窗口
153 btn_gen0 = tkinter.Button(root, text='选择梵高 or 自然景', font=('黑体', 14), height=1, width=20,
154 command = lambda : selectFilename(root))
155 btn_gen0.place(x=20, y=355)
156
157 btn_gen1 = tkinter.Button(root, text='生成梵高风格', font=('黑体', 14), height=1, width=20,
158 command = lambda : loadModel(model1,root))
159 btn_gen1.place(x=300, y=330)
160 btn_gen2 = tkinter.Button(root, text='生成自然图', font=('黑体', 14), height=1, width=20,
161 command = lambda : loadModel(model2,root))
162 btn_gen2.place(x=300, y=370)
163
164
165if __name__ == '__main__':

Callers 1

mainWindows.pyFile · 0.70

Calls 2

selectFilenameFunction · 0.70
loadModelFunction · 0.70

Tested by

no test coverage detected