Mercurial > fife-parpg
diff engine/extensions/pychan/manager.py @ 153:d8e32b4adc5c
Fix for pychan - it used getIndex.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 11 Oct 2008 14:03:01 +0000 |
parents | fe7ff4808529 |
children | bb9902910067 |
line wrap: on
line diff
--- a/engine/extensions/pychan/manager.py Sat Oct 11 12:55:41 2008 +0000 +++ b/engine/extensions/pychan/manager.py Sat Oct 11 14:03:01 2008 +0000 @@ -125,7 +125,8 @@ return style_copy def loadImage(self,filename): - return fife.GuiImage(self.engine.imagePool.getIndex(filename),self.engine.imagePool) + index = self.engine.imagePool.addResourceFromFile(filename) + return fife.GuiImage(index,self.engine.imagePool) def defaultWidgetAction(self,event): if self.debug: