Alright, so I'm trying to do a basic script that allows the user to create a list using textScrollList, and when one of those items is selected, a second textScrollList displays all the items related to that list, also created by the user.
You can download what I have so far here:
pythonLists.py
Essentially what I'm doing is adding the objects in the first list to as keys to a dictionary, and then the items related to that list as the value to that key. The problem I'm getting is this error whenever I try to modify the list set as the key's value:
# Error: list objects are unhashable
# Traceback (most recent call last):
# File "", line 49, in listPop
# TypeError: list objects are unhashable #
I'm new to python, but have read up a little on the difference between mutable and immutable objects, but I don't understand why this error is being thrown.
Any ideas would be appreciated!