Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dictionnary indexing error
#2
The code shown doesn't give enough away to help solve the issue.
The thread title Dictionnary indexing error but I don't see any sign of a dictionary.
The function load_animation_images return a list of pygame images but is never shown as being called in the code.
In the class AnimateSprite > __init__ images is assigned to animations.get(sprite_name) which is not shown so its unknown what it returns
Reply


Messages In This Thread
Dictionnary indexing error - by Ander - Sep-10-2021, 10:19 AM
RE: Dictionnary indexing error - by Yoriz - Sep-10-2021, 11:15 AM
RE: Dictionnary indexing error - by Ander - Sep-10-2021, 11:25 AM
RE: Dictionnary indexing error - by Yoriz - Sep-10-2021, 11:49 AM
RE: Dictionnary indexing error - by Ander - Sep-10-2021, 12:02 PM
RE: Dictionnary indexing error - by Yoriz - Sep-10-2021, 12:11 PM
RE: Dictionnary indexing error - by Ander - Sep-10-2021, 12:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to change 0 based indexing to 1 based indexing in python..?? Ruthra 2 4,351 Jan-22-2020, 05:13 PM
Last Post: Ruthra
  python dictionnary Omar_Yatim 3 2,841 Dec-08-2019, 05:12 AM
Last Post: scidam
  Dictionnary brackets issue Reldaing 1 1,843 Nov-10-2019, 11:54 PM
Last Post: ichabod801
  Access to the elements of a dictionnary Reims 1 1,640 Oct-02-2019, 12:48 PM
Last Post: SheeppOSU
  from Json Time Serie file to python dictionnary Reims 1 2,032 Sep-11-2019, 08:17 AM
Last Post: DeaD_EyE
  convert a json file to a python dictionnary of array Reims 2 2,258 Sep-10-2019, 01:08 PM
Last Post: Reims
  dictionnary lateublegende 1 2,455 Apr-29-2019, 09:10 PM
Last Post: Yoriz
  Why do we need setdefault() method for dictionnary? DJ_Qu 3 2,715 Apr-21-2019, 11:00 AM
Last Post: Gribouillis
  Json dictionnary on Redis katsu707 1 2,442 Dec-04-2018, 11:59 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020