Python學習札記(3)——關於Boa-constructor的問題

問題一:html

當咱們點擊Help時會出現提示:TypeError:in method 'WindowList__getitem__',expected argument 2 of type 'size_t'. 如圖一所示:
ide

圖一spa

問題二:code

當咱們點擊檢視器的提交會話(如圖二紅色框標記所示)時,htm

圖二ci

會出現提示:PyDeadObjectError:The C++ part of the DataView object has been delated,attribute access no longer allowed. 如圖三所示:
get

圖三it

解決辦法:問題二經過goole搜索答案,國外的答案大多以下:io

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 frametable

大致意思是由於Boa-constructor不穩定的緣由

問題三:

當咱們新建完工程,先保存Frame而非App時會出現提示:UnicodeEncodeError:'ascii' codec can't encode characters in position 32-33:ordinal not in range(128). 如圖四所示:

圖四

解決辦法:先保存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)

便可正常顯示。

解決後如圖五紅色方框所示:

圖五

相關文章
相關標籤/搜索