使用(Python + wxPython + boa constructor)組合搭建的編程環境,很類似我喜歡的Delphi,啊哈~~~
問題:安裝好BOA後,發現控件欄中的控件全是空的。
解決辦法:
在boa根目錄,找到 Palette.py,將 408行的語句
newButton = btnType(self, mID, None, wx.Point(self.posX, self.posY)
修改爲
newButton = btnType(self, mID, None, wx.Point(self.posX, 0)
就可以正常使用了
————————————————————————————————————————
另外,可以直接修改 374行,self.posY 的計算方法:
self.posY = int((self.GetSize().y -(24+self.buttonBorder))/2)
修改爲
self.posY = int((self.GetSize().y + 1 -(24+self.buttonBorder))/2)