From a05bf6d7148cd562389f7255a30bf29dd706e329 Mon Sep 17 00:00:00 2001 From: Ignacio Rodríguez Date: Mon, 17 Dec 2012 23:17:59 +0000 Subject: Work Finish. --- 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): -- cgit v0.9.1