Cut and paste to X clipboard?

Stephen Boulet at
Tue Jun 29 15:41:56 CEST 2004

Sam Holden wrote:

> What's wrong with:
> import os
> os.popen('xsel', 'wb').write(s)
> ?

Nothing, other than I didn't know about it. ;)
Much better.



If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
         Donna Smallin, "Unclutter Your Home"

More information about the Python-list mailing list