Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodriguez <ignacio@sugarlabs.org>2013-12-10 16:04:49 (GMT)
committer Ignacio Rodriguez <ignacio@sugarlabs.org>2013-12-10 16:04:49 (GMT)
commit1409de5b4a807827ff8581ed83c27d6cf2d8878a (patch)
tree408647a7b8b93882c17f17ffa6b71d16998db8fc
parentc75602cb6b3cd4928afc044b0158235d5c1d50ec (diff)
Now users can copy and paste text
-rw-r--r--pippy_app.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pippy_app.py b/pippy_app.py
index 6a76e0d..f534bde 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -418,11 +418,13 @@ Discard changes?')
def __copybutton_cb(self, button):
global text_buffer
- text_buffer.copy_clipboard(Gtk.Clipboard())
+ clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
+ text_buffer.copy_clipboard(clipboard)
def __pastebutton_cb(self, button):
global text_buffer
- text_buffer.paste_clipboard(Gtk.Clipboard(), None, True)
+ clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
+ text_buffer.paste_clipboard(clipboard, None, True)
def gobutton_cb(self, button):
from shutil import copy2