diff options
author | Gary Martin <gary@garycmartin.com> | 2009-11-01 18:09:24 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2009-11-01 18:09:24 (GMT) |
commit | 92936ad979cbc4e6b43caeb83aa16663b8321948 (patch) | |
tree | af067717b103ebc6ea2faeeaeb21866942fea894 /labyrinthactivity.py | |
parent | b988dde66c953bae0ac3b21cdeb95ef61833dafc (diff) |
Misc docstrings and a comment.
Diffstat (limited to 'labyrinthactivity.py')
-rw-r--r-- | labyrinthactivity.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/labyrinthactivity.py b/labyrinthactivity.py index e0a2b98..054f865 100644 --- a/labyrinthactivity.py +++ b/labyrinthactivity.py @@ -311,12 +311,17 @@ class LabyrinthActivity(activity.Activity): self._undo.unblock() def __text_selection_cb(self, thought, start, end, text): + """Update state of copy button based on text selection + """ if start != end: self.edit_toolbar.props.page.copy.child.set_sensitive(True) else: self.edit_toolbar.props.page.copy.child.set_sensitive(False) - + + # TODO: implement copy/paste for a thought object or objects def __thought_selected_cb(self, arg, background_color, foreground_color): + """Disable copy button if whole thought object is selected + """ self.edit_toolbar.props.page.copy.child.set_sensitive(False) def __expose(self, widget, event): |