I get this error:
Kod:Panoya kopyala
0624 19:37:08394 :: File "interfaceModule.py", line 422, in MakeInterface
0624 19:37:08395 :: File "interfaceModule.py", line 196, in __MakeChatWindow
0624 19:37:08395 :: File "interfaceModule.py", line 77, in __init__
0624 19:37:08395 :: File "interfaceModule.py", line 83, in checkBox
0624 19:37:08395 :: File "ui.py", line 130, in SetParent
0624 19:37:08395 :: AttributeError
0624 19:37:08395 :: :
0624 19:37:08395 :: 'NoneType' object has no attribute 'hWnd'
0624 19:37:08395 ::
interfaceModule.py 77
self.show = self.checkBox(x,y)
interfaceModule.py 83
checkBox.SetParent(self.parent)
interfaceModule.py 196
ChatKapat = self.chatackapa(None, wndMgr.GetScreenWidth()/2 - wndChat.CHAT_WINDOW_WIDTH/2 - 45, wndMgr.GetScreenHeight() - wndChat.EDIT_LINE_HEIGHT - 35 + 9)
ui.py line 130
def SetParent(self, parent):
wndMgr.SetParent(self.hWnd, parent.hWnd)
Solved:
def checkBox(self, x,y):
checkBox = ui.CheckBoxIbo()
#checkBox.SetParent(self.parent )
checkBox.SetPosition(x, y)