FreeBSD - Copy/Paste Function is isolated

357 views
Skip to first unread message

Roger Wilco

unread,
Jul 12, 2013, 7:22:24 PM7/12/13
to kivy-...@googlegroups.com
Hello all, this is my first post to a forum. Please correct my forum etiquette.

Having trouble with copying from the OS to a TextInput box and visa versa. They seem to be isolated from each other, so they are only able to copy/paste in the kivy app -or- the OS.

Kivy version is 1.7.1. My OS is FreeBSD 9.1. I've install kivy from the x11-toolkits/py-kivy port. Also using "awesome" as my window manager.

I'm able to copy/paste in my OS by four methods, none of which worked in or out my textinput kivy example.
  1. Highlighting text to copy, then pressing the middle click to paste.
  2. Highlighting text and pressing Ctrl+Insert, then pressing Shift+Insert to paste.
  3. Highlighting text and pressing Ctrl+C to copy, then pressing Ctrl+V to paste.
  4. Highlighting text and right-clicking to Copy, then right clicking for the menu to paste.


Any help would be much appreciated.

Akshay Arora

unread,
Jul 13, 2013, 2:44:10 PM7/13/13
to kivy-...@googlegroups.com
1 and 2 aren't implemented
3. is impleted using pygame to sync data with the x11 clipboard, I have no experience with freebsd or your wm.
    If it isn't working, maybe check if it works in major DEs or not.
4. Kivy supports using a bubble for cut copy paste like on ios/android which is disabled on desktops by default. you can enable it by setting use_bubble = True for the TextInput that you want to enable it in or override the rule for <TextInput> and set use_buble:True in it.



--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roger Wilco

unread,
Jul 13, 2013, 5:48:31 PM7/13/13
to kivy-...@googlegroups.com
Thank you so much qua-non. It's greatly narrowed down the list.

It seems to be related to pygame with this message:  [INFO   ] [Clipboard   ] Provider: dummy(['clipboard_pygame'] ignored)

This error message happens with either Ctrl-V or when enabling "use_bubble = True"  in .py file or "use_bubble: True" in .kv file.

I had everything pygame installed with the configuration file for the py-kivy port install. I'm able to import pygame.

Will install gnome sometime and will rely a fix if/when I find an answer.

Thanks again ^^

Mathieu Virbel

unread,
Jul 19, 2013, 10:22:40 AM7/19/13
to kivy-...@googlegroups.com
Yes, we are using pygame.scrap, which is a easy-way to check the clipboard.
If the module is not here/compiled/not working, we don't have others implementation for it.

You could contribute here! Check kivy/kivy/core/clipboard/__init__.py for the interface that you need to implement, and check the clipboard_pygame.py for an implementation with pygame.scrap.

You could also check what's the error exactly (-c kivy:log_level:trace, and check back the issue, you'll have a traceback associated to it). If you don't have pygame.scrap, check why it's not compiled for your OS :)

Mathieu
Reply all
Reply to author
Forward
0 new messages