本帖最后由 passli 于 2017-11-6 23:28 编辑
{:5_91:}
Easygui学习文档
本帖最后由 枫丹白露666 于 2017-11-8 13:43 编辑我按照小甲鱼老师的视频把PROPORTIONAL_FONT改成“微软雅黑”,然后代码就执行错误了,错误如下:
Traceback (most recent call last):
File "C:\Users\dell\Desktop\test.py", line 1, in <module>
import easygui as g
File "C:\Users\dell\AppData\Local\Programs\Python\Python36-32\lib\site-packages\easygui.py", line 1470
okButton = Button(buttonsFrame, takefocus=YES, text="OK", height=1FA, width=6)
^
SyntaxError: invalid syntax
文件“C:\用户桌面\戴尔\ \测试。在<模块>中,第1行
进口easygui g
戴尔用户文件“C:\ \ \ AppData \本地Python \程序\ \ Python36-32 \ lib \网站\ easygui。py”,1470行
okButton =按钮(buttonsFrame,takefocus = YES,text ="OK ",height = 1FA,width =6)
^
SyntaxError:无效的语法
在没有修改之前是可以执行的,但是修改之后就错误
请问这是咋回事? 支持小甲鱼 翻译文档404了,求助 很有用!太赞了{:10_254:} 这篇文章非常好,很全面 赞一个{:10_254:} 好帖,谢谢指导 刚学,小白,加油
求助,报错了,一直找不到原因!
代码:
import os
from easygui import *
settingsFilename = os.path.join('C:', 'FishCApp', 'settings.txt')
settings = Settings(settingsFilename)
user = '奥巴马'
server = '白宫'
settings.userId = user
settings.targetServer = server
settings.store()
user = '小甲鱼'
settings.userId = user
settings.store()
=====================================
报错信息:
>>> ================= RESTART =================
>>>
Traceback (most recent call last):
File "C:/Users/user/Desktop/Python/EgStore.py", line 5, in <module>
settings = Settings(settingsFilename)
NameError: name 'Settings' is not defined
>>> 看答案案 好棒好棒,跟着小甲鱼一起努力进步! easygui很棒! 感谢,好不错的教程 很强大啊,感谢