Re: [orca-list] copy to clipboard does not copy



Hi,


I try to copy from:

  - terminal (gnome-terminal)

  - gedit

  - thunderbird

  - firefox


I try to paste:

  - terminal (gnome-terminal)

  - gedit

  - thunderbird

  - firefox


I use gnome-shell and not mate...

I try this code:

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

gi.require_version("Gdk", "3.0")
from gi.repository import Gdk
text = "hello"
clipboard = Gtk.Clipboard.get(Gdk.Atom.intern("CLIPBOARD", False))
clipboard.set_text(text, -1)

It does not copy text to clipboard... If you can explain me howto debug this code, I can try to locate the error (or not).


Regards.


Le 01/03/2021 à 16:39, José Vilmar Estácio de Souza a écrit :
Hi.
In which application are you trying to paste the text? It wouldn't be at the terminal, would it?


On 3/1/21 11:40 AM, Grosboulet wrote:
Hello,


Sorry for my poor english.


I have upgrade my ubuntu to 21.04 and I use orca 40. When I try to copy text with orca (copy to clipboard), orca says "contents added to clipboard" (I try to translate from my language). When I try to paste with "ctrl + v", nothing pasted... I have remove "orca" package and build from source with :

bash ./autogen.sh --prefix=/

make -j5

sudo make install


I try this code:

$ python3

>>> import pyperclip

>>> pyperclip.copy("hello")


I use "ctrl + v" after, I paste "hello".


I have another bug with laptop layout, when I use "cap lock" to use orca shorcut, cap lock changes (if I am in lowercase, it pass to uppercase and vise versa).


Thanks for you help and your works!


Regards.

_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]