Resize the window. Parameters ---------- size : (float, float) The new width and height of the camera image in pixels.
(self, size)
| 63 | self._state = state |
| 64 | |
| 65 | def resize(self, size): |
| 66 | """Resize the window. |
| 67 | |
| 68 | Parameters |
| 69 | ---------- |
| 70 | size : (float, float) |
| 71 | The new width and height of the camera image in pixels. |
| 72 | """ |
| 73 | self._size = np.array(size) |
| 74 | |
| 75 | def down(self, point): |
| 76 | """Record an initial mouse press at a given point. |