Changeset 104
- Timestamp:
- 11/28/07 07:41:39 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
packages/defconAppKit/trunk/Lib/defconAppKit/views/glyphCellView.py
r97 r104 62 62 self._glyphs = glyphs 63 63 self._subscribeToGlyphs() 64 maxIndex = len(glyphs) - 1 65 toRemove = set() 66 for index in self._selection: 67 if index > maxIndex: 68 toRemove.add(index) 69 self._selection = self._selection - toRemove 64 70 self.recalculateFrame() 65 71 … … 330 336 331 337 # dragging 332 if self._allowDrag and mouseDown and optionDown andfound in self._selection:338 if self._allowDrag and mouseDown and found in self._selection: 333 339 if found is None: 334 340 return … … 659 665 return False 660 666 667 def getGlyphCellView(self): 668 return self._glyphCellView 669 661 670 def __getitem__(self, index): 662 671 return self._glyphs[index]
