Jump to content

Python 'QuestDialog' object has no attribute 'hWnd'


Recommended Posts

  • Management

Sup bois

 

I implemented an ingame support system, it's working fine, but I noticed this error on syserr.txt
 

0519 15:52:25624 :: "'QuestDialog' object has no attribute 'hWnd'"
0519 15:52:25625 ::  in 
0519 15:52:25625 :: <bound method QuestDialog.__del__ of <uiQuest.QuestDialog object at 0x070911F0>>
0519 15:52:25625 ::  ignored

0519 15:52:25626 :: Traceback (most recent call last):

0519 15:52:25626 ::   File "System/game.py", line 716, in OpenQuestWindow

0519 15:52:25627 ::     
0519 15:52:25627 :: self.interface.OpenQuestWindow(skin, idx)

0519 15:52:25628 ::   File "System/interfaceModule.py", line 698, in OpenQuestWindow

0519 15:52:25628 ::     
0519 15:52:25629 :: q.SetWindowName("QuestWindow" + str(idx))

0519 15:52:25629 ::   File "System/ui.py", line 145, in SetWindowName

0519 15:52:25630 ::     
0519 15:52:25630 :: wndMgr.SetName(self.hWnd, Name)

0519 15:52:25630 :: AttributeError
0519 15:52:25630 :: : 
0519 15:52:25631 :: 'QuestDialog' object has no attribute 'hWnd'
0519 15:52:25631 :: 

This only happens when I open or close the system's window.

 

This are all the python changes (there also a single python file for the system):

https://paste.karbust.me/view/9b77b0cb

 

Any idea?

 

Thank you

raw

raw

Link to comment
Share on other sites

  • Management
25 minutes ago, ⚡FlasH⚡ said:

def Enable(self): pass #wndMgr.Enable(self.hWnd) def Disable(self): pass #wndMgr.Disable(self.hWnd)


        def Enable(self):
				pass
                #wndMgr.Enable(self.hWnd)
 
        def Disable(self):
                pass
                #wndMgr.Disable(self.hWnd)

try this , seems u dont have self.hWnd

or import this maybe will work ?

https://www.paste.tc/EWMDR8OTVW

Tried the first part, didn't solve, the error keeps popping up but keeps working.

 

The second part, this is my class: https://paste.karbust.me/view/e0ad43fe

 

I already have a few edits.

  • Lmao 1
  • Good 1

raw

raw

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.