returns the specified (x,y) component
(self, x, y)
| 304 | raise Exception("changeComponent: indices out of bounds") |
| 305 | |
| 306 | def component(self, x, y): |
| 307 | """ |
| 308 | returns the specified (x,y) component |
| 309 | """ |
| 310 | if x >= 0 and x < self.__height and y >= 0 and y < self.__width: |
| 311 | return self.__matrix[x][y] |
| 312 | else: |
| 313 | raise Exception("changeComponent: indices out of bounds") |
| 314 | |
| 315 | def width(self): |
| 316 | """ |
no outgoing calls