Jump to content

FIX: 'NoneType' object has no attribute '__getitem__'


Recommended Posts

1017 23:48:59422 ::   File "game.py", line xyxy, in OnKeyUp

1017 23:48:59423 :: TypeError
1017 23:48:59423 :: : 
1017 23:48:59423 :: 'NoneType' object has no attribute '__getitem__'
1017 23:48:59423 :: 

Akik hasonló problémával küzdöttek mint, én azoknak ajánlom a következő sorokat. Két dolgot kell fixálni a forrásban és nincs többé ilyen probléma.
 

Spoiler

Hidden Content

    Give reaction to this post to see the hidden content.

 

  • Like 13
  • Thanks 3
  • Haha 1
  • Sad 1
Link to post
Share on other sites
  • 2 weeks later...

Annyi a dolog titka, hogy a Ymir nem fejezte be a ‘Def OnKeyUp(self):’ függvényt, mert ott már kell hozzá a Billentyűzet kiosztó rendszer.

Erre gondolok:  

Hidden Content

    Give reaction to this post to see the hidden content.

 

Ezt beépítve megoldódott ez a sysser gond.

  • Like 14
  • Thanks 5
  • Haha 1
  • Confused 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...