Changeset 196
- Timestamp:
- 04/25/08 15:51:27 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
packages/defconAppKit/trunk/Lib/defconAppKit/views/glyphCellView.py
r186 r196 127 127 def setGlyphs_(self, glyphs): 128 128 currentSelection = [self._glyphs[index] for index in self._selection] 129 newSelection = [glyphs.index(glyph) for glyph in currentSelection if glyph in glyphs]129 newSelection = set([glyphs.index(glyph) for glyph in currentSelection if glyph in glyphs]) 130 130 self._selection = newSelection 131 131 self._unsubscribeFromGlyphs() … … 147 147 148 148 def recalculateFrame(self): 149 width, height = self.superview().frame().size 149 superview = self.superview() 150 if superview is None: 151 return 152 width, height = superview.frame().size 150 153 if width == 0 or height == 0: 151 154 return
