Python学习札记(3)——关于Boa-constructor的问题

问题一:

当我们点击Help时会出现提示:TypeError:in method 'WindowList__getitem__',expected argument 2 of type 'size_t'. 如图一所示:

Python学习札记(3)——关于Boa-constructor的问题_第1张图片

图一

问题二:

当我们点击检视器的提交会话(如图二红色框标记所示)时,

图二

会出现提示:PyDeadObjectError:The C++ part of the DataView object has been delated,attribute access no longer allowed. 如图三所示:

图三

解决办法:问题二通过goole搜索答案,国外的答案大多如下:

Riaan just send out the new release with some new
enhancement especially added sizer. But the basic use
of boa is unstable:

1. It failed to get PythonInterpreterPath
2. It failed ro refresh the code in Editor when i
tried to change the style of the frame

大体意思是因为Boa-constructor不稳定的原因

问题三:

当我们新建完工程,先保存Frame而非App时会出现提示:UnicodeEncodeError:'ascii' codec can't encode characters in position 32-33:ordinal not in range(128). 如图四所示:

Python学习札记(3)——关于Boa-constructor的问题_第2张图片

图四

解决办法:先保存App文件,再保存Frame文件


问题五:

在win7-64bit环境下,boa-constructor 0.6.1 的palette面板中没有控件图标,空白一片。

解决办法在boa根目录,找到 Palette.py,将 374行的语句:

self.posY = int((self.GetSize().y -(24+self.buttonBorder))/2)

修改为:

 self.posY = int((self.GetSize().y + 1 -(24+self.buttonBorder))/2)

即可正常显示。

解决后如图五红色方框所示:

图五

你可能感兴趣的:(Python学习札记(3)——关于Boa-constructor的问题)