returns the specified (x,y) component
(self,x,y)
| 236 | else: |
| 237 | raise Exception ("changeComponent: indices out of bounds") |
| 238 | def component(self,x,y): |
| 239 | """ |
| 240 | returns the specified (x,y) component |
| 241 | """ |
| 242 | if x >= 0 and x < self.__height and y >= 0 and y < self.__width: |
| 243 | return self.__matrix[x][y] |
| 244 | else: |
| 245 | raise Exception ("changeComponent: indices out of bounds") |
| 246 | def width(self): |
| 247 | """ |
| 248 | getter for the width |
no outgoing calls