(self, *loaderArgs)
| 29 | self.map = {} |
| 30 | |
| 31 | def GetImageIndex(self, *loaderArgs): |
| 32 | id_ = self.map.get(loaderArgs) |
| 33 | if id_ is None: |
| 34 | bitmap = BitmapLoader.getBitmap(*loaderArgs) |
| 35 | if bitmap is None: |
| 36 | return -1 |
| 37 | id_ = self.map[loaderArgs] = wx.ImageList.Add(self, bitmap) |
| 38 | return id_ |
no test coverage detected