Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2012-12-17 23:17:59 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2012-12-17 23:17:59 (GMT)
commita05bf6d7148cd562389f7255a30bf29dd706e329 (patch)
treeffc89a1b9cc23063d33a3ea0d2e3e9c599986013
parent047df7bb903ab50c17733c3cfa3235e245513b31 (diff)
Work Finish.
-rw-r--r--AbacusActivity.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/AbacusActivity.py b/AbacusActivity.py
index adb5560..a709fba 100644
--- a/AbacusActivity.py
+++ b/AbacusActivity.py
@@ -393,23 +393,25 @@ class AbacusActivity(activity.Activity):
def _copy_cb(self, arg=None):
''' Copy a number to the clipboard from the active abacus. '''
- clipBoard = Gtk.Clipboard()
- text = self.abacus.generate_label(sum_only=True)
- if text is not None:
- clipBoard.set_text(text)
+# clipBoard = Gtk.Clipboard(Gdk.SELECTION_CLIPBOARD)
+# text = self.abacus.generate_label(sum_only=True)
+# if text is not None:
+# clipBoard.set_text(text, -1)
+# FIXME!
return
def _paste_cb(self, arg=None):
''' Paste a number from the clipboard to the active abacus. '''
- clipBoard = Gtk.Clipboard()
- text = clipBoard.wait_for_text()
- if text is not None:
- try:
- self.abacus.mode.set_value_from_number(float(text))
- except ValueError, e:
- _logger.debug(str(e))
- return
- self.abacus.mode.label(self.abacus.generate_label())
+# clipBoard = Gtk.Clipboard()
+# text = clipBoard.wait_for_text()
+# if text is not None:
+# try:
+# self.abacus.mode.set_value_from_number(float(text))
+# except ValueError, e:
+# _logger.debug(str(e))
+# return
+# self.abacus.mode.label(self.abacus.generate_label())
+# FIXME !
return
def write_file(self, file_path):