Commits

riaan  committed 43d63c6

Added cleanup method

  • Participants
  • Parent commits 5c55c33

Comments (0)

Files changed (1)

File ImageStore.py

         self.rootpath = rootpath
         self.images = images
         self.useCache = cache
+    
+    def cleanup(self):
+        del self.images
 
     def createImage(self, filename, ext):
         if ext == '.bmp':
             if not self.images.has_key(name):
                 self.images[name] = self.createImage(path.join(self.rootpath,
                     name), path.splitext(name)[1])
+            #print '%s:%s'%(self.images[name].this, name)
             return self.images[name]
         else:
             return self.createImage(path.join(self.rootpath, name),
         except KeyError:
             print name, 'not found by zipped image store'
             return wx.wxNullBitmap
+