diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-05 20:12:48 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-05 20:12:48 (GMT) |
commit | b7277de7b4ac5e259d1006054fe00c99eb995cb0 (patch) | |
tree | c4fd0c56f5d515c23584102ddf586ca8f8e28841 | |
parent | ee36d676007bda44c744f10be189aa54338776eb (diff) |
Add copyright info and some minor fixes.
-rw-r--r-- | calculate.py | 3 | ||||
-rw-r--r-- | layout.py | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/calculate.py b/calculate.py index 196974f..7ee58a4 100644 --- a/calculate.py +++ b/calculate.py @@ -732,8 +732,7 @@ class Calculate(ShareableActivity): self.select_reason = self.SELECT_SELECT def text_copy(self): - if self.layout.graph_selected != False: - print "\n\nGraph Copy!\n\n" + if self.layout.graph_selected is not None: self.clipboard.set_image(self.layout.graph_selected.child.get_pixbuf()) self.layout.toggle_select_graph(self.layout.graph_selected) else: @@ -1,4 +1,5 @@ # layout.py, see calculate.py for info +# Copyright (C) 2012 Aneesh Dogra <lionaneesh@gmail.com> from gettext import gettext as _ import pygtk @@ -37,7 +38,7 @@ class CalcLayout: self._showing_history = True self._showing_all_history = True self._var_textviews = {} - self.graph_selected = False + self.graph_selected = None self.create_dialog() |