diff options
Diffstat (limited to 'thoughtview.py')
-rw-r--r-- | thoughtview.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/thoughtview.py b/thoughtview.py index a079476..eeae9e8 100644 --- a/thoughtview.py +++ b/thoughtview.py @@ -25,6 +25,7 @@ from sugar.graphics import style from gaphas.examples import Box, Text from gaphas.connector import Handle +from gaphas.geometry import Rectangle class ThoughtView(Box): @@ -105,3 +106,7 @@ class ThoughtView(Box): self.new_thought_handle.y = 20 return updated + def get_rectangle(self): + x, y = self.get_position() + return Rectangle(x, y, self.width, self.height) + |