小种子 发表于 2021-2-25 21:45:30

C:\Users\Administrator\Desktop\4.png
为何我的不行?求大神指教{:10_257:}

小种子 发表于 2021-2-25 21:46:29

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) on win32
Type "copyright", "credits" or "license()" for more information.
>>> import easygui as g
>>> g.buttonbox(image='C:\Users\Administrator\AppData\Local\Programs\Python\Python37\3.gif',msg="选择一个你喜欢的吧!",title="一个小游戏",choices=("Python","C++","Java"))
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
>>>

lzb1001 发表于 2022-1-26 16:32:25

请问buttonbox里如果要对图片尺寸进行定义,应如何编写代码啊?

Alpha_Ricky 发表于 2022-2-27 16:51:21

我想知道buttonbox在哪里编辑字体大小
页: 1 [2]
查看完整版本: 关于EasyGui中在buttonbox里添加图片的问题