+ -
当前位置:首页 → 问答吧 → 这个错误什么意思,高人指点下。谢谢

这个错误什么意思,高人指点下。谢谢

时间:2011-03-26

来源:互联网

运行网上下来的源码。结果在日志中有出错提示,代码如下:
错误1
2011-03-26 09:52:04,592 ERROR Traceback (most recent call last):
  File "D:\pthon25\c\cpp\pnl.py", line 1469, in __init_grid_rate
  self.grdTable.EnableRowGridLines(0, False)
AttributeError: 'Grid' object has no attribute 'EnableRowGridLines'

错误2
  File "D:\pthon25\c\cpp\pnl.py", line 3209, in clear_data_cols
  if self.__danger_call_col > 4:
AttributeError: 'Cpnl' object has no attribute '_Cpnl__danger_call_col'


Grid有EnableRowGridLines这个属性吗?,我在帮助中只看到有'EnableGridLines'

错误2更看不懂...郁闷

作者: solmyr117   发布时间: 2011-03-26

选择使用高质量的代码。质量不高的代码,或者文档不正确的代码,问题百出。

作者: iambic   发布时间: 2011-03-26

引用楼主 solmyr117 的回复:
运行网上下来的源码。结果在日志中有出错提示,代码如下:
错误1
2011-03-26 09:52:04,592 ERROR Traceback (most recent call last):
File "D:\pthon25\c\cpp\pnl.py", line 1469, in __init_grid_rate
self.grdTable.EnableRowGridLin……


应该是代码中写了EnableRowGridLines这个属性,而错误提示说Grid没有EnableRowGridLines这个属性吧

作者: chungwen_Chiang   发布时间: 2011-03-26