Set the offset of the container. Parameters ---------- xy : (float, float) The (x, y) coordinates of the offset in display units.
(self, xy)
| 776 | """ |
| 777 | |
| 778 | def set_offset(self, xy): |
| 779 | """ |
| 780 | Set the offset of the container. |
| 781 | |
| 782 | Parameters |
| 783 | ---------- |
| 784 | xy : (float, float) |
| 785 | The (x, y) coordinates of the offset in display units. |
| 786 | """ |
| 787 | self._offset = xy |
| 788 | self.offset_transform.clear() |
| 789 | self.offset_transform.translate(xy[0], xy[1]) |
| 790 | self.stale = True |
| 791 | |
| 792 | def get_offset(self): |
| 793 | """Return offset of the container.""" |
no test coverage detected