(self, key, b)
| 66 | return b |
| 67 | |
| 68 | def insert(self, key, b): |
| 69 | self._open_gap_from_i(key) |
| 70 | list.insert(self, key, b) |
| 71 | b.setx(self.x + 34 * key) |
| 72 | width, _, _ = b.shapesize() |
| 73 | # align blocks by the bottom edge |
| 74 | y_offset = width / 2 * 20 |
| 75 | b.sety(self.y + y_offset) |
| 76 | b.unglow() |
| 77 | |
| 78 | def isort(shelf): |
| 79 | length = len(shelf) |