I looked at the code but none of them are pure xlib implementation so
this might be a problem.
One straightforward way to implement clipboard on linux would be to
use the 'xsel' program through an os.popen call but this tool is not
always present even if it is a pretty common tool.

Nicolas


On Mar 27, 1:11 am, Bruce Smith <[email protected]> wrote:
> On Mar 26, 12:33 am, Nicolas Rougier <[email protected]>
> wrote:
>
> > I support the idea (precisely because I'm working on a text editor).
> > I think the xlib clipboard lacks the put_text method so far.
>
> > Nicolas
>
> I found a few examples of "multiplatform python clipboard support" on
> the web, before I noticed the one in contrib/wydget; I think they all
> have some sort of X support for put_text (using xlib and/or GTK -- I
> don't use X much, or GTK ever, so I didn't scrutinize them for that,
> but they at least say they have "linux support", as well as Windows
> and Mac).
>
> They all look "open source", but I didn't yet discover definitive
> licensing info for any of them (nor look very hard). Here they are (in
> no special order):
>
> 1.  "Build a Shared Clipboard Utility in Python" (3 page howto
> article)
>
>      http://www.devx.com/opensource/Article/37233/0/page/1
>
>       (this includes two Mac implems, one using the pbcopy/pbpaste
> commands, which it claims works better on Tiger than accessing the
> carbon library)
>
> 2. retos_version_v3_1.py
>
>     
> fromhttp://public.nouser.org/~rspoerri/Development/python/panda3d/project...
>
>     (its Windows code has a dependency, but no problem if we're only
> looking for X)
>
> 3. the copy_url function in lodgeit.py
>
>   - which is a small script downloadable 
> fromhttp://uthcode.sarovar.org/python/lodgeit.py
>
>   - which apparently has something to do 
> withhttp://lucumr.pocoo.org/2008/11/29/lodgeit-updates
>
>   - and is mentioned inhttp://dev.pocoo.org/irclogs/%23pocoo.2006-11-15.log
> as if it was created then
>
>   - btw it only has the "copy to clipboard" direction (put_text), no
> "paste from clipboard" (get_text)
>
> Bruce
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to