Use one map per instance, not one global map

This commit is contained in:
cncfanatics
2010-10-05 19:16:12 +02:00
parent 83ed4bdd44
commit 334db896ca

View File

@@ -21,7 +21,9 @@ import wx
import bitmapLoader
class CachingImageList(wx.ImageList):
map = {}
def __init__(self):
self.map = {}
def Add(self, *loaderArgs):
id = self.map.get(loaderArgs)
if id is None: